src/hotspot/os/bsd/os_bsd.cpp
changeset 48865 53427ddce0a0
parent 48813 c092a2fbb7c3
child 49449 ef5d5d343e2a
equal deleted inserted replaced
48864:42a2dc52a4e9 48865:53427ddce0a0
  2204   return addr;
  2204   return addr;
  2205 }
  2205 }
  2206 
  2206 
  2207 bool os::release_memory_special(char* base, size_t bytes) {
  2207 bool os::release_memory_special(char* base, size_t bytes) {
  2208   if (MemTracker::tracking_level() > NMT_minimal) {
  2208   if (MemTracker::tracking_level() > NMT_minimal) {
  2209     Tracker tkr = MemTracker::get_virtual_memory_release_tracker();
  2209     Tracker tkr(Tracker::release);
  2210     // detaching the SHM segment will also delete it, see reserve_memory_special()
  2210     // detaching the SHM segment will also delete it, see reserve_memory_special()
  2211     int rslt = shmdt(base);
  2211     int rslt = shmdt(base);
  2212     if (rslt == 0) {
  2212     if (rslt == 0) {
  2213       tkr.record((address)base, bytes);
  2213       tkr.record((address)base, bytes);
  2214       return true;
  2214       return true;