United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7160924 jvmti: GetPhase returns incorrect phase before VMInit event is issued
JDK-7160924 : jvmti: GetPhase returns incorrect phase before VMInit event is issued

Details
Type:
Bug
Submit Date:
2012-04-12
Status:
Resolved
Updated Date:
2013-04-30
Project Name:
JDK
Resolved Date:
2012-04-25
Component:
hotspot
OS:
generic
Sub-Component:
jvmti
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs23,7u4,8
Fixed Versions:
hs24 (b08)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Instead of JVMTI_PHASE_START, GetPhase returns incorrect phase after VMStart occured, but before VMInit is issued.

                                    

Comments
EVALUATION

There is a short race between where we set the phase to JVMTI_PHASE_LIVE and we post the VMInit event, adding tracing made that period longer and more likely to trigger. One solution would be to move the trace initialization to after the VMInit event has been sent.
                                     
2012-04-12
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/df4cd4aac5c1
                                     
2012-04-13
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/df4cd4aac5c1
                                     
2012-04-18
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/df4cd4aac5c1
                                     
2012-06-29



Hardware and Software, Engineered to Work Together