Skip to content

Commit f4cf758

Browse files
committed
8297491: Loom: Stack chunks allocation code uses TLABs even when TLABs are disabled
Reviewed-by: tschatzl, aboldtch, aph
1 parent 5e5b774 commit f4cf758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/shared/memAllocator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ oop MemAllocator::allocate() const {
380380

381381
oop MemAllocator::try_allocate_in_existing_tlab() {
382382
oop obj = NULL;
383-
{
383+
if (UseTLAB) {
384384
HeapWord* mem = allocate_inside_tlab_fast();
385385
if (mem != NULL) {
386386
obj = initialize(mem);

0 commit comments

Comments
 (0)