< prev index next >
src/hotspot/share/gc/shared/plab.inline.hpp
Print this page
@@ -41,21 +41,21 @@
_top = res;
return allocate(word_sz);
}
void PLABStats::add_allocated(size_t v) {
- Atomic::add(v, &_allocated);
+ Atomic::add(&_allocated, v);
}
void PLABStats::add_unused(size_t v) {
- Atomic::add(v, &_unused);
+ Atomic::add(&_unused, v);
}
void PLABStats::add_wasted(size_t v) {
- Atomic::add(v, &_wasted);
+ Atomic::add(&_wasted, v);
}
void PLABStats::add_undo_wasted(size_t v) {
- Atomic::add(v, &_undo_wasted);
+ Atomic::add(&_undo_wasted, v);
}
#endif // SHARE_GC_SHARED_PLAB_INLINE_HPP
< prev index next >