src/hotspot/share/gc/shared/plab.inline.hpp
changeset 59249 29b0d0b61615
parent 53244 9807daeb47c4
equal deleted inserted replaced
59248:e92153ed8bdc 59249:29b0d0b61615
    41   _top = res;
    41   _top = res;
    42   return allocate(word_sz);
    42   return allocate(word_sz);
    43 }
    43 }
    44 
    44 
    45 void PLABStats::add_allocated(size_t v) {
    45 void PLABStats::add_allocated(size_t v) {
    46   Atomic::add(v, &_allocated);
    46   Atomic::add(&_allocated, v);
    47 }
    47 }
    48 
    48 
    49 void PLABStats::add_unused(size_t v) {
    49 void PLABStats::add_unused(size_t v) {
    50   Atomic::add(v, &_unused);
    50   Atomic::add(&_unused, v);
    51 }
    51 }
    52 
    52 
    53 void PLABStats::add_wasted(size_t v) {
    53 void PLABStats::add_wasted(size_t v) {
    54   Atomic::add(v, &_wasted);
    54   Atomic::add(&_wasted, v);
    55 }
    55 }
    56 
    56 
    57 void PLABStats::add_undo_wasted(size_t v) {
    57 void PLABStats::add_undo_wasted(size_t v) {
    58   Atomic::add(v, &_undo_wasted);
    58   Atomic::add(&_undo_wasted, v);
    59 }
    59 }
    60 
    60 
    61 #endif // SHARE_GC_SHARED_PLAB_INLINE_HPP
    61 #endif // SHARE_GC_SHARED_PLAB_INLINE_HPP