src/share/vm/code/nmethod.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/code/nmethod.cpp	Tue Jan 25 11:42:47 2011
--- new/src/share/vm/code/nmethod.cpp	Tue Jan 25 11:42:47 2011

*** 32,41 **** --- 32,42 ---- #include "compiler/compilerOracle.hpp" #include "compiler/disassembler.hpp" #include "interpreter/bytecode.hpp" #include "oops/methodDataOop.hpp" #include "prims/jvmtiRedefineClassesTrace.hpp" + #include "prims/jvmtiImpl.hpp" #include "runtime/sharedRuntime.hpp" #include "runtime/sweeper.hpp" #include "utilities/dtrace.hpp" #include "utilities/events.hpp" #include "utilities/xmlstream.hpp"
*** 1531,1541 **** --- 1532,1545 ---- JvmtiExport::should_post_compiled_method_unload()) { get_and_cache_jmethod_id(); } if (JvmtiExport::should_post_compiled_method_load()) { JvmtiExport::post_compiled_method_load(this); + // Let the Service thread (which is a real Java thread) post the event + MutexLockerEx ml(Service_lock, Mutex::_no_safepoint_check_flag); + JvmtiDeferredEventQueue::enqueue( + JvmtiDeferredEvent::compiled_method_load(this)); } } jmethodID nmethod::get_and_cache_jmethod_id() { if (_jmethod_id == NULL) {

src/share/vm/code/nmethod.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File