8204685: Abstraction for TLAB dummy object

Reviewed-by: tschatzl, shade
This commit is contained in:
Roman Kennke 2018-06-13 10:15:35 +02:00
parent 74e093f058
commit cc206eaca5
4 changed files with 9 additions and 3 deletions

View file

@ -350,6 +350,8 @@ class CollectedHeap : public CHeapObj<mtInternal> {
fill_with_object(start, pointer_delta(end, start), zap);
}
virtual void fill_with_dummy_object(HeapWord* start, HeapWord* end, bool zap);
// Return the address "addr" aligned by "alignment_in_bytes" if such
// an address is below "end". Return NULL otherwise.
inline static HeapWord* align_allocation_or_fail(HeapWord* addr,