Merge
authordsamersoff
Thu, 15 Jan 2015 12:02:55 +0000
changeset 28620 0e23eb51d29e
parent 28617 12ae756253c2 (current diff)
parent 28619 adeadd271a0f (diff)
child 28622 8a6807f24cbd
Merge
--- a/hotspot/src/share/vm/prims/perf.cpp	Wed Jan 07 08:37:49 2015 +0100
+++ b/hotspot/src/share/vm/prims/perf.cpp	Thu Jan 15 12:02:55 2015 +0000
@@ -100,6 +100,11 @@
 
   PerfWrapper("Perf_Detach");
 
+  if (!UsePerfData) {
+    // With -XX:-UsePerfData, detach is just a NOP
+    return;
+  }
+
   void* address = 0;
   jlong capacity = 0;