< prev index next >
src/share/vm/code/nmethod.cpp
Print this page
@@ -41,10 +41,11 @@
#include "runtime/sharedRuntime.hpp"
#include "runtime/sweeper.hpp"
#include "utilities/dtrace.hpp"
#include "utilities/events.hpp"
#include "utilities/xmlstream.hpp"
+#include "evtrace/traceManager.hpp"
#ifdef SHARK
#include "shark/sharkCompiler.hpp"
#endif
PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
@@ -1701,10 +1702,15 @@
// and the unloading is reported during the first transition.
return;
}
assert(_method != NULL && !is_unloaded(), "just checking");
+
+ if (EnableEventTracing) {
+ TraceManager::nmethod_is_unloading(this);
+ }
+
DTRACE_METHOD_UNLOAD_PROBE(method());
// If a JVMTI agent has enabled the CompiledMethodUnload event then
// post the event. Sometime later this nmethod will be made a zombie
// by the sweeper but the Method* will not be valid at that point.
< prev index next >