From b4630d6207a5832dec1cf15e498c57ed767e0be9 Mon Sep 17 00:00:00 2001 From: Gary Adams Date: Tue, 4 Dec 2018 07:09:02 -0500 Subject: [PATCH] 8176828: jtools do not list VM process launched with the debugger option suspend=y Reviewed-by: dholmes, cjplummer --- src/hotspot/share/runtime/thread.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hotspot/share/runtime/thread.cpp b/src/hotspot/share/runtime/thread.cpp index e22f52b2a00..0c23cf014de 100644 --- a/src/hotspot/share/runtime/thread.cpp +++ b/src/hotspot/share/runtime/thread.cpp @@ -3902,6 +3902,9 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) { // may be attached late and JVMTI must track phases of VM execution JvmtiExport::enter_live_phase(); + // Make perfmemory accessible + PerfMemory::set_accessible(true); + // Notify JVMTI agents that VM initialization is complete - nop if no agents. JvmtiExport::post_vm_initialized();