equal
deleted
inserted
replaced
35 char* _base; |
35 char* _base; |
36 size_t _size; |
36 size_t _size; |
37 size_t _noaccess_prefix; |
37 size_t _noaccess_prefix; |
38 size_t _alignment; |
38 size_t _alignment; |
39 bool _special; |
39 bool _special; |
|
40 int _fd_for_heap; |
40 private: |
41 private: |
41 bool _executable; |
42 bool _executable; |
42 |
43 |
43 // ReservedSpace |
44 // ReservedSpace |
44 ReservedSpace(char* base, size_t size, size_t alignment, bool special, |
45 ReservedSpace(char* base, size_t size, size_t alignment, bool special, |
113 void initialize_compressed_heap(const size_t size, size_t alignment, bool large); |
114 void initialize_compressed_heap(const size_t size, size_t alignment, bool large); |
114 // Create protection page at the beginning of the space. |
115 // Create protection page at the beginning of the space. |
115 void establish_noaccess_prefix(); |
116 void establish_noaccess_prefix(); |
116 public: |
117 public: |
117 // Constructor. Tries to find a heap that is good for compressed oops. |
118 // Constructor. Tries to find a heap that is good for compressed oops. |
118 ReservedHeapSpace(size_t size, size_t forced_base_alignment, bool large); |
119 // heap_allocation_directory is the path to the backing memory for Java heap. When set, Java heap will be allocated |
|
120 // on the device which is managed by the file system where the directory resides. |
|
121 ReservedHeapSpace(size_t size, size_t forced_base_alignment, bool large, const char* heap_allocation_directory = NULL); |
119 // Returns the base to be used for compression, i.e. so that null can be |
122 // Returns the base to be used for compression, i.e. so that null can be |
120 // encoded safely and implicit null checks can work. |
123 // encoded safely and implicit null checks can work. |
121 char *compressed_oop_base() { return _base - _noaccess_prefix; } |
124 char *compressed_oop_base() { return _base - _noaccess_prefix; } |
122 }; |
125 }; |
123 |
126 |