--- old/src/hotspot/share/gc/z/zPageAllocator.cpp 2018-11-20 08:42:04.623935051 +0100 +++ new/src/hotspot/share/gc/z/zPageAllocator.cpp 2018-11-20 08:42:04.290920785 +0100 @@ -260,7 +260,7 @@ // Free virtual memory { - ZLocker locker(&_lock); + ZLocker locker(&_lock); _virtual.free(page->virtual_memory()); } @@ -268,7 +268,7 @@ } void ZPageAllocator::flush_detached_pages(ZList* list) { - ZLocker locker(&_lock); + ZLocker locker(&_lock); list->transfer(&_detached); } @@ -376,7 +376,7 @@ // thread have returned from sem_wait(). To avoid this race we are // forcing the waiting thread to acquire/release the lock held by the // posting thread. https://sourceware.org/bugzilla/show_bug.cgi?id=12674 - ZLocker locker(&_lock); + ZLocker locker(&_lock); } } @@ -384,7 +384,7 @@ } ZPage* ZPageAllocator::alloc_page_nonblocking(uint8_t type, size_t size, ZAllocationFlags flags) { - ZLocker locker(&_lock); + ZLocker locker(&_lock); return alloc_page_common(type, size, flags); } @@ -477,7 +477,7 @@ } void ZPageAllocator::free_page(ZPage* page, bool reclaimed) { - ZLocker locker(&_lock); + ZLocker locker(&_lock); // Update used statistics decrease_used(page->size(), reclaimed); @@ -495,7 +495,7 @@ } void ZPageAllocator::check_out_of_memory() { - ZLocker locker(&_lock); + ZLocker locker(&_lock); // Fail allocation requests that were enqueued before the // last GC cycle started, otherwise start a new GC cycle.