comparison src/hotspot/share/gc/z/zMarkStackAllocator.cpp @ 53621:ec92cbf2152b

8212748: ZGC: Add reentrant locking functionality Reviewed-by: eosterlund, kbarrett
author pliden
date Fri, 09 Nov 2018 14:08:01 +0100
parents f3cf91d5373f
children
comparison
equal deleted inserted replaced
0:815c91a7bf25 1:b7b63f4bd352
80 top = prev_top; 80 top = prev_top;
81 } 81 }
82 } 82 }
83 83
84 uintptr_t ZMarkStackSpace::expand_and_alloc_space(size_t size) { 84 uintptr_t ZMarkStackSpace::expand_and_alloc_space(size_t size) {
85 ZLocker locker(&_expand_lock); 85 ZLocker<ZLock> locker(&_expand_lock);
86 86
87 // Retry allocation before expanding 87 // Retry allocation before expanding
88 uintptr_t addr = alloc_space(size); 88 uintptr_t addr = alloc_space(size);
89 if (addr != 0) { 89 if (addr != 0) {
90 return addr; 90 return addr;