< prev index next >

src/hotspot/share/gc/z/zPageAllocator.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/shared/suspendibleThreadSet.hpp" #include "gc/z/zAddress.inline.hpp" #include "gc/z/zCollectedHeap.hpp" #include "gc/z/zFuture.inline.hpp" #include "gc/z/zGlobals.hpp"
*** 125,147 **** if (!_virtual.is_initialized() || !_physical.is_initialized()) { return; } ! log_info(gc, init)("Min Capacity: " SIZE_FORMAT "M", min_capacity / M); ! log_info(gc, init)("Initial Capacity: " SIZE_FORMAT "M", initial_capacity / M); ! log_info(gc, init)("Max Capacity: " SIZE_FORMAT "M", max_capacity / M); ! log_info(gc, init)("Max Reserve: " SIZE_FORMAT "M", max_reserve / M); ! log_info(gc, init)("Pre-touch: %s", AlwaysPreTouch ? "Enabled" : "Disabled"); // Warn if system limits could stop us from reaching max capacity _physical.warn_commit_limits(max_capacity); // Commit initial capacity _capacity = _physical.commit(initial_capacity); if (_capacity != initial_capacity) { ! log_error(gc)("Failed to allocate initial Java heap (" SIZE_FORMAT "M)", initial_capacity / M); return; } // If uncommit is not explicitly disabled, max capacity is greater than // min capacity, and uncommit is supported by the platform, then we will --- 126,148 ---- if (!_virtual.is_initialized() || !_physical.is_initialized()) { return; } ! log_info_p(gc, init)("Min Capacity: " SIZE_FORMAT "M", min_capacity / M); ! log_info_p(gc, init)("Initial Capacity: " SIZE_FORMAT "M", initial_capacity / M); ! log_info_p(gc, init)("Max Capacity: " SIZE_FORMAT "M", max_capacity / M); ! log_info_p(gc, init)("Max Reserve: " SIZE_FORMAT "M", max_reserve / M); ! log_info_p(gc, init)("Pre-touch: %s", AlwaysPreTouch ? "Enabled" : "Disabled"); // Warn if system limits could stop us from reaching max capacity _physical.warn_commit_limits(max_capacity); // Commit initial capacity _capacity = _physical.commit(initial_capacity); if (_capacity != initial_capacity) { ! log_error_p(gc)("Failed to allocate initial Java heap (" SIZE_FORMAT "M)", initial_capacity / M); return; } // If uncommit is not explicitly disabled, max capacity is greater than // min capacity, and uncommit is supported by the platform, then we will
*** 378,391 **** commit / M, committed / M, _capacity / M); if (committed != commit) { // Failed, or partly failed, to increase capacity. Adjust current // max capacity to avoid further attempts to increase capacity. ! log_error(gc)("Forced to lower max Java heap size from " ! SIZE_FORMAT "M(%.0f%%) to " SIZE_FORMAT "M(%.0f%%)", ! _current_max_capacity / M, percent_of(_current_max_capacity, _max_capacity), ! _capacity / M, percent_of(_capacity, _max_capacity)); _current_max_capacity = _capacity; } } --- 379,392 ---- commit / M, committed / M, _capacity / M); if (committed != commit) { // Failed, or partly failed, to increase capacity. Adjust current // max capacity to avoid further attempts to increase capacity. ! log_error_p(gc)("Forced to lower max Java heap size from " ! SIZE_FORMAT "M(%.0f%%) to " SIZE_FORMAT "M(%.0f%%)", ! _current_max_capacity / M, percent_of(_current_max_capacity, _max_capacity), ! _capacity / M, percent_of(_capacity, _max_capacity)); _current_max_capacity = _capacity; } }
< prev index next >