src/hotspot/share/prims/jvmtiEnv.cpp
changeset 52131 e9727e6b5fc1
parent 52071 c4a39588a075
child 52154 a4d4c609d70c
--- a/src/hotspot/share/prims/jvmtiEnv.cpp	Wed Oct 03 23:00:32 2018 -0700
+++ b/src/hotspot/share/prims/jvmtiEnv.cpp	Mon Oct 15 14:16:35 2018 -0700
@@ -540,13 +540,6 @@
       record_class_file_load_hook_enabled();
     }
 
-    if (event_type == JVMTI_EVENT_SAMPLED_OBJECT_ALLOC) {
-      if (enabled) {
-        ThreadHeapSampler::enable();
-      } else {
-        ThreadHeapSampler::disable();
-      }
-    }
     JvmtiEventController::set_user_enabled(this, (JavaThread*) NULL, event_type, enabled);
   } else {
     // We have a specified event_thread.