equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #ifndef SHARE_MEMORY_VIRTUALSPACE_HPP |
25 #ifndef SHARE_MEMORY_VIRTUALSPACE_HPP |
26 #define SHARE_MEMORY_VIRTUALSPACE_HPP |
26 #define SHARE_MEMORY_VIRTUALSPACE_HPP |
27 |
27 |
|
28 #include "memory/memRegion.hpp" |
28 #include "utilities/globalDefinitions.hpp" |
29 #include "utilities/globalDefinitions.hpp" |
29 |
30 |
30 class outputStream; |
31 class outputStream; |
31 |
32 |
32 // ReservedSpace is a data structure for reserving a contiguous address range. |
33 // ReservedSpace is a data structure for reserving a contiguous address range. |
120 // heap_allocation_directory is the path to the backing memory for Java heap. When set, Java heap will be allocated |
121 // heap_allocation_directory is the path to the backing memory for Java heap. When set, Java heap will be allocated |
121 // on the device which is managed by the file system where the directory resides. |
122 // on the device which is managed by the file system where the directory resides. |
122 ReservedHeapSpace(size_t size, size_t forced_base_alignment, bool large, const char* heap_allocation_directory = NULL); |
123 ReservedHeapSpace(size_t size, size_t forced_base_alignment, bool large, const char* heap_allocation_directory = NULL); |
123 // Returns the base to be used for compression, i.e. so that null can be |
124 // Returns the base to be used for compression, i.e. so that null can be |
124 // encoded safely and implicit null checks can work. |
125 // encoded safely and implicit null checks can work. |
125 char *compressed_oop_base() { return _base - _noaccess_prefix; } |
126 char *compressed_oop_base() const { return _base - _noaccess_prefix; } |
|
127 MemRegion region() const; |
126 }; |
128 }; |
127 |
129 |
128 // Class encapsulating behavior specific memory space for Code |
130 // Class encapsulating behavior specific memory space for Code |
129 class ReservedCodeSpace : public ReservedSpace { |
131 class ReservedCodeSpace : public ReservedSpace { |
130 public: |
132 public: |