mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-12 14:39:49 +00:00
8210314: [aix] NMT does not show "Safepoint" memory type
Reviewed-by: goetz, mbaesken
This commit is contained in:
parent
d2e84521c0
commit
23635d7d6f
@ -27,6 +27,7 @@
|
||||
#include "runtime/globals.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
#include "runtime/safepointMechanism.hpp"
|
||||
#include "services/memTracker.hpp"
|
||||
#include <sys/mman.h>
|
||||
|
||||
void SafepointMechanism::pd_initialize() {
|
||||
@ -95,6 +96,9 @@ void SafepointMechanism::pd_initialize() {
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user