mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
7076820: assert(addr != 0) failed: address sanity check in PerfMemory::detach with -XX:-UsePerfData
Explicitly checks for UsePerfData and if it's false make Perf:detach a NOP. Reviewed-by: dholmes, jbachorik
This commit is contained in:
parent
77f22c1241
commit
885e6ddf67
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ PERF_ENTRY(void, Perf_Detach(JNIEnv *env, jobject unused, jobject buffer))
|
|||
|
||||
PerfWrapper("Perf_Detach");
|
||||
|
||||
if (!UsePerfData) {
|
||||
// With -XX:-UsePerfData, detach is just a NOP
|
||||
return;
|
||||
}
|
||||
|
||||
void* address = 0;
|
||||
jlong capacity = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue