< prev index next >

src/hotspot/share/services/mallocTracker.hpp

Print this page

        

*** 64,74 **** inline void deallocate(size_t sz) { assert(_count > 0, "Nothing allocated yet"); assert(_size >= sz, "deallocation > allocated"); Atomic::dec(&_count); if (sz > 0) { ! Atomic::sub(sz, &_size); } } inline void resize(long sz) { if (sz != 0) { --- 64,74 ---- inline void deallocate(size_t sz) { assert(_count > 0, "Nothing allocated yet"); assert(_size >= sz, "deallocation > allocated"); Atomic::dec(&_count); if (sz > 0) { ! Atomic::sub(&_size, sz); } } inline void resize(long sz) { if (sz != 0) {
< prev index next >