src/hotspot/share/memory/virtualspace.hpp
changeset 58015 dd84de796f2c
parent 53547 9d1a788dea3d
--- a/src/hotspot/share/memory/virtualspace.hpp	Thu Sep 05 08:26:44 2019 +0200
+++ b/src/hotspot/share/memory/virtualspace.hpp	Thu Sep 05 08:26:49 2019 +0200
@@ -25,6 +25,7 @@
 #ifndef SHARE_MEMORY_VIRTUALSPACE_HPP
 #define SHARE_MEMORY_VIRTUALSPACE_HPP
 
+#include "memory/memRegion.hpp"
 #include "utilities/globalDefinitions.hpp"
 
 class outputStream;
@@ -122,7 +123,8 @@
   ReservedHeapSpace(size_t size, size_t forced_base_alignment, bool large, const char* heap_allocation_directory = NULL);
   // Returns the base to be used for compression, i.e. so that null can be
   // encoded safely and implicit null checks can work.
-  char *compressed_oop_base() { return _base - _noaccess_prefix; }
+  char *compressed_oop_base() const { return _base - _noaccess_prefix; }
+  MemRegion region() const;
 };
 
 // Class encapsulating behavior specific memory space for Code