hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 2867 69187054225f
parent 1 489c9b5090e2
child 3261 c7d5aae8d3f7
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Fri May 08 10:34:31 2009 -0700
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Fri May 08 10:44:20 2009 -0700
@@ -1530,6 +1530,12 @@
     assert(thread->env() == &ci_env, "set by ci_env");
     // The thread-env() field is cleared in ~CompileTaskWrapper.
 
+    // Cache Jvmti state
+    ci_env.cache_jvmti_state();
+
+    // Cache DTrace flags
+    ci_env.cache_dtrace_flags();
+
     ciMethod* target = ci_env.get_method_from_handle(target_handle);
 
     TraceTime t1("compilation", &time);