8331410: Remove unused MemAllocator::mem_allocate_inside_tlab
Reviewed-by: tschatzl, gli
This commit is contained in:
parent
22a1c617db
commit
33e81229bd
@ -250,19 +250,6 @@ HeapWord* MemAllocator::mem_allocate_outside_tlab(Allocation& allocation) const
|
||||
return mem;
|
||||
}
|
||||
|
||||
HeapWord* MemAllocator::mem_allocate_inside_tlab(Allocation& allocation) const {
|
||||
assert(UseTLAB, "should use UseTLAB");
|
||||
|
||||
// Try allocating from an existing TLAB.
|
||||
HeapWord* mem = mem_allocate_inside_tlab_fast();
|
||||
if (mem != nullptr) {
|
||||
return mem;
|
||||
}
|
||||
|
||||
// Try refilling the TLAB and allocating the object in it.
|
||||
return mem_allocate_inside_tlab_slow(allocation);
|
||||
}
|
||||
|
||||
HeapWord* MemAllocator::mem_allocate_inside_tlab_fast() const {
|
||||
return _thread->tlab().allocate(_word_size);
|
||||
}
|
||||
@ -331,7 +318,6 @@ HeapWord* MemAllocator::mem_allocate_inside_tlab_slow(Allocation& allocation) co
|
||||
return mem;
|
||||
}
|
||||
|
||||
|
||||
HeapWord* MemAllocator::mem_allocate_slow(Allocation& allocation) const {
|
||||
// Allocation of an oop can always invoke a safepoint.
|
||||
debug_only(allocation._thread->check_for_valid_safepoint_state());
|
||||
|
@ -47,7 +47,6 @@ protected:
|
||||
|
||||
private:
|
||||
// Allocate in a TLAB. Could allocate a new TLAB, and therefore potentially safepoint.
|
||||
HeapWord* mem_allocate_inside_tlab(Allocation& allocation) const;
|
||||
HeapWord* mem_allocate_inside_tlab_slow(Allocation& allocation) const;
|
||||
|
||||
// Allocate outside a TLAB. Could safepoint.
|
||||
|
Loading…
Reference in New Issue
Block a user