src/hotspot/share/gc/g1/g1PageBasedVirtualSpace.cpp
changeset 59060 fce1fa1bdc91
parent 57811 947252a54b98
child 59139 302c4d2e7b3a
--- a/src/hotspot/share/gc/g1/g1PageBasedVirtualSpace.cpp	Wed Nov 13 13:43:06 2019 -0500
+++ b/src/hotspot/share/gc/g1/g1PageBasedVirtualSpace.cpp	Wed Nov 13 10:49:12 2019 -0800
@@ -124,6 +124,11 @@
   return _low_boundary + index * _page_size;
 }
 
+size_t G1PageBasedVirtualSpace::page_size() const {
+  assert(_page_size > 0, "Page size is not yet initialized.");
+  return _page_size;
+}
+
 bool G1PageBasedVirtualSpace::is_after_last_page(size_t index) const {
   guarantee(index <= _committed.size(),
             "Given boundary page " SIZE_FORMAT " is beyond managed page count " SIZE_FORMAT, index, _committed.size());