Skip to content

Commit 8337666

Browse files
committed
Private member variables in ZObjectAlloactorImpl
1 parent 00e1fb4 commit 8337666

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/gc/z/zObjectAllocator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ static const ZStatCounter ZCounterUndoObjectAllocationSucceeded("Memory", "Undo
4545
static const ZStatCounter ZCounterUndoObjectAllocationFailed("Memory", "Undo Object Allocation Failed", ZStatUnitOpsPerSecond);
4646

4747
class ZObjectAllocatorImpl {
48-
public:
48+
private:
4949
const ZPageAge _age;
5050
const bool _use_per_cpu_shared_small_pages;
5151
ZPerCPU<ZPage*> _shared_small_page;
5252
ZContended<ZPage*> _shared_medium_page;
5353
ZLock _medium_page_alloc_lock;
5454

55+
public:
5556
ZObjectAllocatorImpl(ZPageAge age);
5657

5758
ZPage** shared_small_page_addr();

0 commit comments

Comments
 (0)