< prev index next >

src/hotspot/share/services/mallocTracker.hpp

Print this page

        

@@ -64,11 +64,11 @@
   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);
+      Atomic::sub(&_size, sz);
     }
   }
 
   inline void resize(long sz) {
     if (sz != 0) {
< prev index next >