< prev index next >
src/hotspot/os/windows/perfMemory_windows.cpp
Print this page
*** 1836,1849 ****
if (PerfMemory::contains(addr) || PerfMemory::contains(addr + bytes - 1)) {
// prevent accidental detachment of this process's PerfMemory region
return;
}
- if (MemTracker::tracking_level() > NMT_minimal) {
- // it does not go through os api, the operation has to record from here
- Tracker tkr = MemTracker::get_virtual_memory_release_tracker();
remove_file_mapping(addr);
! tkr.record((address)addr, bytes);
! } else {
! remove_file_mapping(addr);
! }
}
--- 1836,1844 ----
if (PerfMemory::contains(addr) || PerfMemory::contains(addr + bytes - 1)) {
// prevent accidental detachment of this process's PerfMemory region
return;
}
remove_file_mapping(addr);
!
! MemTracker::record_virtual_memory_release(addr, bytes);
}
< prev index next >