# HG changeset patch # User rbackman # Date 1334229848 -7200 # Node ID df4cd4aac5c19f80d526b61daec0ca2e180c04e4 # Parent 10c12fb36ed2be27e5d6a60ce91cb1ec3181cf46 7160924: jvmti: GetPhase returns incorrect phase before VMInit event is issued Reviewed-by: acorn, dcubed diff -r 10c12fb36ed2 -r df4cd4aac5c1 src/share/vm/runtime/thread.cpp --- a/src/share/vm/runtime/thread.cpp Thu Apr 05 14:16:23 2012 +0200 +++ b/src/share/vm/runtime/thread.cpp Thu Apr 12 13:24:08 2012 +0200 @@ -3468,13 +3468,13 @@ create_vm_init_libraries(); } + // Notify JVMTI agents that VM initialization is complete - nop if no agents. + JvmtiExport::post_vm_initialized(); + if (!TRACE_START()) { vm_exit_during_initialization(Handle(THREAD, PENDING_EXCEPTION)); } - // Notify JVMTI agents that VM initialization is complete - nop if no agents. - JvmtiExport::post_vm_initialized(); - if (CleanChunkPoolAsync) { Chunk::start_chunk_pool_cleaner_task(); }