< prev index next >

src/hotspot/share/gc/z/zPhysicalMemory.cpp

Print this page

        

*** 20,29 **** --- 20,30 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ #include "precompiled.hpp" + #include "gc/shared/gcLogPrecious.hpp" #include "gc/z/zAddress.inline.hpp" #include "gc/z/zGlobals.hpp" #include "gc/z/zLargePages.inline.hpp" #include "gc/z/zNUMA.inline.hpp" #include "gc/z/zPhysicalMemory.inline.hpp"
*** 294,324 **** // If uncommit is not explicitly disabled, max capacity is greater than // min capacity, and uncommit is supported by the platform, then uncommit // will be enabled. if (!ZUncommit) { ! log_info(gc, init)("Uncommit: Disabled"); return; } if (max_capacity == min_capacity) { ! log_info(gc, init)("Uncommit: Implicitly Disabled (-Xms equals -Xmx)"); FLAG_SET_ERGO(ZUncommit, false); return; } // Test if uncommit is supported by the operating system by committing // and then uncommitting a granule. ZPhysicalMemory pmem(ZPhysicalMemorySegment(0, ZGranuleSize, false /* committed */)); if (!commit(pmem) || !uncommit(pmem)) { ! log_info(gc, init)("Uncommit: Implicitly Disabled (Not supported by operating system)"); FLAG_SET_ERGO(ZUncommit, false); return; } ! log_info(gc, init)("Uncommit: Enabled"); ! log_info(gc, init)("Uncommit Delay: " UINTX_FORMAT "s", ZUncommitDelay); } void ZPhysicalMemoryManager::nmt_commit(uintptr_t offset, size_t size) const { // From an NMT point of view we treat the first heap view (marked0) as committed const uintptr_t addr = ZAddress::marked0(offset); --- 295,325 ---- // If uncommit is not explicitly disabled, max capacity is greater than // min capacity, and uncommit is supported by the platform, then uncommit // will be enabled. if (!ZUncommit) { ! log_info_p(gc, init)("Uncommit: Disabled"); return; } if (max_capacity == min_capacity) { ! log_info_p(gc, init)("Uncommit: Implicitly Disabled (-Xms equals -Xmx)"); FLAG_SET_ERGO(ZUncommit, false); return; } // Test if uncommit is supported by the operating system by committing // and then uncommitting a granule. ZPhysicalMemory pmem(ZPhysicalMemorySegment(0, ZGranuleSize, false /* committed */)); if (!commit(pmem) || !uncommit(pmem)) { ! log_info_p(gc, init)("Uncommit: Implicitly Disabled (Not supported by operating system)"); FLAG_SET_ERGO(ZUncommit, false); return; } ! log_info_p(gc, init)("Uncommit: Enabled"); ! log_info_p(gc, init)("Uncommit Delay: " UINTX_FORMAT "s", ZUncommitDelay); } void ZPhysicalMemoryManager::nmt_commit(uintptr_t offset, size_t size) const { // From an NMT point of view we treat the first heap view (marked0) as committed const uintptr_t addr = ZAddress::marked0(offset);
< prev index next >