United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6997456 Not possible to build just compiler2
6997456 : Not possible to build just compiler2

Details
Type:
Bug
Submit Date:
2010-11-04
Status:
Closed
Updated Date:
2012-05-02
Project Name:
JDK
Resolved Date:
2011-04-23
Component:
hotspot
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs19
Fixed Versions:
hs20

Related Reports
Backport:
Backport:

Sub Tasks

Description
Right now there is no target in the make files to build just compiler2. To be able to build compiler2 (without also building compiler1) you have to comment out FORCE_TIERED=1 in make/windows/build.make, make/linux/Makefile or make/solaris/Makefile. The make files do "ifdef FORCE_TIERED", so it is not possible to turn it off from the command line.

But if you to that you get compilation errors when compiling src/share/vm/runtime/java.cpp:

java.cpp
D:\clients\brutisso\hotspot_main-rt\src\share\vm\runtime\java.cpp(201) : error C2065: 'C1UpdateMethodData' : undeclared identifier

This is due to java.cpp using compiler1 specific code without #ifdefs.

We need to fix java.cpp so that it can be compiled with just compiler2. Also, I think it would be a good idea to have a separate target for building compiler2 and include that as a build target in JPRT. If we don't test building compiler2 it will stop working again sooner or later.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/build/hotspot/rev/34bd82eba3bb
                                     
2010-12-04
EVALUATION

See comments
                                     
2010-11-19



Hardware and Software, Engineered to Work Together