src/hotspot/share/prims/jvmtiManageCapabilities.cpp
changeset 50578 e2a7f431f65c
parent 49379 2d1d0c66966b
child 53619 f5fd8eefae0f
--- a/src/hotspot/share/prims/jvmtiManageCapabilities.cpp	Mon Jun 11 15:28:24 2018 +0200
+++ b/src/hotspot/share/prims/jvmtiManageCapabilities.cpp	Fri Jun 15 00:49:54 2018 -0700
@@ -130,6 +130,7 @@
 
   memset(&jc, 0, sizeof(jc));
   jc.can_suspend = 1;
+  jc.can_generate_sampled_object_alloc_events = 1;
   return jc;
 }
 
@@ -410,6 +411,8 @@
     log_trace(jvmti)("can_generate_frame_pop_events");
   if (cap->can_generate_breakpoint_events)
     log_trace(jvmti)("can_generate_breakpoint_events");
+  if (cap->can_generate_sampled_object_alloc_events)
+    log_trace(jvmti)("can_generate_sampled_object_alloc_events");
   if (cap->can_suspend)
     log_trace(jvmti)("can_suspend");
   if (cap->can_redefine_any_class )