Skip to content

Commit ed34e7f

Browse files
William KemperY. Srinivas Ramakrishna
William Kemper
authored and
Y. Srinivas Ramakrishna
committed
8306321: Add an accessor for the top of a PLAB
Reviewed-by: shade, ysr
1 parent fdb4baf commit ed34e7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hotspot/share/gc/shared/plab.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ class PLAB: public CHeapObj<mtGC> {
138138
// Fills in the unallocated portion of the buffer with a garbage object and updates
139139
// statistics. To be called during GC.
140140
void retire();
141+
142+
HeapWord* top() const {
143+
return _top;
144+
}
141145
};
142146

143147
// PLAB book-keeping.

0 commit comments

Comments
 (0)