Mercurial > hg > graal-compiler
changeset 6002:df4cd4aac5c1
7160924: jvmti: GetPhase returns incorrect phase before VMInit event is issued
Reviewed-by: acorn, dcubed
author | rbackman |
---|---|
date | Thu, 12 Apr 2012 13:24:08 +0200 |
parents | 10c12fb36ed2 |
children | 0f701f572aed |
files | src/share/vm/runtime/thread.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }