mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-20 11:50:25 +00:00
8378128: Make PLABStats data members private
Reviewed-by: tschatzl, ayang, jwaters
This commit is contained in:
parent
2adffe0c3c
commit
cc4ca9fde8
@ -147,14 +147,14 @@ public:
|
||||
|
||||
// PLAB book-keeping.
|
||||
class PLABStats : public CHeapObj<mtGC> {
|
||||
protected:
|
||||
const char* _description; // Identifying string.
|
||||
|
||||
Atomic<size_t> _allocated; // Total allocated
|
||||
Atomic<size_t> _wasted; // of which wasted (internal fragmentation)
|
||||
Atomic<size_t> _undo_wasted; // of which wasted on undo (is not used for calculation of PLAB size)
|
||||
Atomic<size_t> _unused; // Unused in last buffer
|
||||
|
||||
protected:
|
||||
const char* _description; // Identifying string.
|
||||
|
||||
virtual void reset() {
|
||||
_allocated.store_relaxed(0);
|
||||
_wasted.store_relaxed(0);
|
||||
@ -164,11 +164,11 @@ protected:
|
||||
|
||||
public:
|
||||
PLABStats(const char* description) :
|
||||
_description(description),
|
||||
_allocated(0),
|
||||
_wasted(0),
|
||||
_undo_wasted(0),
|
||||
_unused(0)
|
||||
_unused(0),
|
||||
_description(description)
|
||||
{ }
|
||||
|
||||
virtual ~PLABStats() { }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user