src/hotspot/share/services/mallocTracker.hpp
changeset 59250 a6deb69743d4
parent 59249 29b0d0b61615
child 59269 ac6f7738a0ee
equal deleted inserted replaced
59249:29b0d0b61615 59250:a6deb69743d4
    64   inline void deallocate(size_t sz) {
    64   inline void deallocate(size_t sz) {
    65     assert(_count > 0, "Nothing allocated yet");
    65     assert(_count > 0, "Nothing allocated yet");
    66     assert(_size >= sz, "deallocation > allocated");
    66     assert(_size >= sz, "deallocation > allocated");
    67     Atomic::dec(&_count);
    67     Atomic::dec(&_count);
    68     if (sz > 0) {
    68     if (sz > 0) {
    69       Atomic::sub(sz, &_size);
    69       Atomic::sub(&_size, sz);
    70     }
    70     }
    71   }
    71   }
    72 
    72 
    73   inline void resize(long sz) {
    73   inline void resize(long sz) {
    74     if (sz != 0) {
    74     if (sz != 0) {