< prev index next >

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

Print this page

        

@@ -32,11 +32,10 @@
 #include "gc/z/zPageAllocator.hpp"
 #include "gc/z/zPageCache.inline.hpp"
 #include "gc/z/zSafeDelete.inline.hpp"
 #include "gc/z/zStat.hpp"
 #include "gc/z/zTracer.inline.hpp"
-#include "runtime/globals.hpp"
 #include "runtime/init.hpp"
 #include "runtime/java.hpp"
 #include "utilities/debug.hpp"
 
 static const ZStatCounter       ZCounterAllocationRate("Memory", "Allocation Rate", ZStatUnitBytesPerSecond);

@@ -180,13 +179,12 @@
 
 size_t ZPageAllocator::max_capacity() const {
   return _max_capacity;
 }
 
-size_t ZPageAllocator::soft_max_capacity() const {
-  // Note that SoftMaxHeapSize is a manageable flag
-  return MIN2(SoftMaxHeapSize, _current_max_capacity);
+size_t ZPageAllocator::current_max_capacity() const {
+  return _current_max_capacity;
 }
 
 size_t ZPageAllocator::capacity() const {
   return _capacity;
 }
< prev index next >