United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6564610 assert(UseCompiler || CompileTheWorld,"UseCompiler should be set by now.")
JDK-6564610 : assert(UseCompiler || CompileTheWorld,"UseCompiler should be set by now.")

Details
Type:
Bug
Submit Date:
2007-06-01
Status:
Closed
Updated Date:
2012-10-18
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
linux_2.6
Sub-Component:
compiler
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs21 (b07)

Related Reports
Backport:

Sub Tasks

Description
Running JDK b12 jvmg on linux-i586 trying to duplicate another bug,
hotspot.log:
Java HotSpot(TM) Client VM warning: CodeCache is full. Compiler has been disabled

                                    

Comments
EVALUATION

It is wrong to assert that UseCompiler is set because it can change asychronously at any point. This is what happens in this bug: there is a race between a check for UseCompiler in NonTieredCompPolicy::event() and then asserts in method_invocation_event() and method_back_branch_event(). The value of UseCompiler can change in-between.

These invalid asserts should be removed.
                                     
2011-03-30
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/e2eb7f986c64
                                     
2011-03-31



Hardware and Software, Engineered to Work Together