changeset 7829:a814058f5215

7076820: assert(addr != 0) failed: address sanity check in PerfMemory::detach with -XX:-UsePerfData Summary: Explicitly checks for UsePerfData and if it's false make Perf:detach a NOP. Reviewed-by: dholmes, jbachorik
author dsamersoff
date Wed, 14 Jan 2015 07:10:53 -0800
parents 48e04c239aa4
children 15502499ac47
files src/share/vm/prims/perf.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/perf.cpp	Tue Jan 13 14:30:53 2015 -0500
+++ b/src/share/vm/prims/perf.cpp	Wed Jan 14 07:10:53 2015 -0800
@@ -100,6 +100,11 @@
 
   PerfWrapper("Perf_Detach");
 
+  if (!UsePerfData) {
+    // With -XX:-UsePerfData, detach is just a NOP
+    return;
+  }
+
   void* address = 0;
   jlong capacity = 0;