equal
deleted
inserted
replaced
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; |