8176828: jtools do not list VM process launched with the debugger option suspend=y
Reviewed-by: dholmes, cjplummer
--- a/src/hotspot/share/runtime/thread.cpp Tue Dec 04 11:57:18 2018 +0100
+++ b/src/hotspot/share/runtime/thread.cpp Tue Dec 04 07:09:02 2018 -0500
@@ -3902,6 +3902,9 @@
// 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();