8306321: Add an accessor for the top of a PLAB

Reviewed-by: shade, ysr
This commit is contained in:
William Kemper 2023-04-19 18:32:48 +00:00 committed by Y. Srinivas Ramakrishna
parent fdb4bafa31
commit ed34e7f5ae

@ -138,6 +138,10 @@ public:
// Fills in the unallocated portion of the buffer with a garbage object and updates
// statistics. To be called during GC.
void retire();
HeapWord* top() const {
return _top;
}
};
// PLAB book-keeping.