--- old/src/hotspot/share/gc/shared/collectedHeap.hpp 2018-06-04 23:13:09.984240472 +0200 +++ new/src/hotspot/share/gc/shared/collectedHeap.hpp 2018-06-04 23:13:09.618246787 +0200 @@ -144,6 +144,13 @@ inline static HeapWord* allocate_from_tlab(Klass* klass, size_t size, TRAPS); static HeapWord* allocate_from_tlab_slow(Klass* klass, size_t size, TRAPS); + // Raw memory allocation facilities + // The obj and array allocate methods are covers for these methods. + // mem_allocate() should never be + // called to allocate TLABs, only individual objects. + virtual HeapWord* mem_allocate(size_t size, + bool* gc_overhead_limit_was_exceeded) = 0; + // Allocate an uninitialized block of the given size, or returns NULL if // this is impossible. inline static HeapWord* common_mem_allocate_noinit(Klass* klass, size_t size, TRAPS); @@ -309,13 +316,6 @@ inline static oop array_allocate_nozero(Klass* klass, int size, int length, TRAPS); inline static oop class_allocate(Klass* klass, int size, TRAPS); - // Raw memory allocation facilities - // The obj and array allocate methods are covers for these methods. - // mem_allocate() should never be - // called to allocate TLABs, only individual objects. - virtual HeapWord* mem_allocate(size_t size, - bool* gc_overhead_limit_was_exceeded) = 0; - // Raw memory allocation. This may or may not use TLAB allocations to satisfy the // allocation. A GC implementation may override this function to satisfy the allocation // in any way. But the default is to try a TLAB allocation, and otherwise perform