diff 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
line wrap: on
line diff
--- a/src/hotspot/share/gc/z/zMarkStackAllocator.cpp	Thu Nov 22 09:14:31 2018 +0100
+++ b/src/hotspot/share/gc/z/zMarkStackAllocator.cpp	Fri Nov 09 14:08:01 2018 +0100
@@ -82,7 +82,7 @@
 }
 
 uintptr_t ZMarkStackSpace::expand_and_alloc_space(size_t size) {
-  ZLocker locker(&_expand_lock);
+  ZLocker<ZLock> locker(&_expand_lock);
 
   // Retry allocation before expanding
   uintptr_t addr = alloc_space(size);