# HG changeset patch # User stuefe # Date 1535967174 -7200 # Node ID 7ffb47fcb69b0c96436d34589b0a90100a9781ad # Parent 54b344d9dd4e1c48471aa5a42fdfafd4d001a707 8210314: [aix] NMT does not show "Safepoint" memory type Reviewed-by: diff --git a/src/hotspot/os/aix/safepointMechanism_aix.cpp b/src/hotspot/os/aix/safepointMechanism_aix.cpp --- a/src/hotspot/os/aix/safepointMechanism_aix.cpp +++ b/src/hotspot/os/aix/safepointMechanism_aix.cpp @@ -27,6 +27,7 @@ #include "runtime/globals.hpp" #include "runtime/os.hpp" #include "runtime/safepointMechanism.hpp" +#include "services/memTracker.hpp" #include void SafepointMechanism::pd_initialize() { @@ -95,6 +96,9 @@ log_info(os)("SafePoint Polling address: " INTPTR_FORMAT, p2i(map_address)); os::set_polling_page((address)(map_address)); + // Register polling page with NMT. + MemTracker::record_virtual_memory_reserve_and_commit(map_address, map_size, CALLER_PC, mtSafepoint); + // Use same page for ThreadLocalHandshakes without SIGTRAP if (ThreadLocalHandshakes) { set_uses_thread_local_poll();