167 char* middle_high() const { return _middle_high; } 168 char* upper_high() const { return _upper_high; } 169 170 char* lower_high_boundary() const { return _lower_high_boundary; } 171 char* middle_high_boundary() const { return _middle_high_boundary; } 172 char* upper_high_boundary() const { return _upper_high_boundary; } 173 174 size_t lower_alignment() const { return _lower_alignment; } 175 size_t middle_alignment() const { return _middle_alignment; } 176 size_t upper_alignment() const { return _upper_alignment; } 177 178 public: 179 // Committed area 180 char* low() const { return _low; } 181 char* high() const { return _high; } 182 183 // Reserved area 184 char* low_boundary() const { return _low_boundary; } 185 char* high_boundary() const { return _high_boundary; } 186 187 bool special() const { return _special; } 188 189 public: 190 // Initialization 191 VirtualSpace(); 192 bool initialize_with_granularity(ReservedSpace rs, size_t committed_byte_size, size_t max_commit_ganularity); 193 bool initialize(ReservedSpace rs, size_t committed_byte_size); 194 195 // Destruction 196 ~VirtualSpace(); 197 198 // Reserved memory 199 size_t reserved_size() const; 200 // Actually committed OS memory 201 size_t actual_committed_size() const; 202 // Memory used/expanded in this virtual space 203 size_t committed_size() const; 204 // Memory left to use/expand in this virtual space 205 size_t uncommitted_size() const; 206 | 167 char* middle_high() const { return _middle_high; } 168 char* upper_high() const { return _upper_high; } 169 170 char* lower_high_boundary() const { return _lower_high_boundary; } 171 char* middle_high_boundary() const { return _middle_high_boundary; } 172 char* upper_high_boundary() const { return _upper_high_boundary; } 173 174 size_t lower_alignment() const { return _lower_alignment; } 175 size_t middle_alignment() const { return _middle_alignment; } 176 size_t upper_alignment() const { return _upper_alignment; } 177 178 public: 179 // Committed area 180 char* low() const { return _low; } 181 char* high() const { return _high; } 182 183 // Reserved area 184 char* low_boundary() const { return _low_boundary; } 185 char* high_boundary() const { return _high_boundary; } 186 187 #if INCLUDE_AOT 188 // Set boundaries for code section in AOT library. 189 void set_low_boundary(char *p) { _low_boundary = p; } 190 void set_high_boundary(char *p) { _high_boundary = p; } 191 void set_low(char *p) { _low = p; } 192 void set_high(char *p) { _high = p; } 193 #endif 194 195 bool special() const { return _special; } 196 197 public: 198 // Initialization 199 VirtualSpace(); 200 bool initialize_with_granularity(ReservedSpace rs, size_t committed_byte_size, size_t max_commit_ganularity); 201 bool initialize(ReservedSpace rs, size_t committed_byte_size); 202 203 // Destruction 204 ~VirtualSpace(); 205 206 // Reserved memory 207 size_t reserved_size() const; 208 // Actually committed OS memory 209 size_t actual_committed_size() const; 210 // Memory used/expanded in this virtual space 211 size_t committed_size() const; 212 // Memory left to use/expand in this virtual space 213 size_t uncommitted_size() const; 214 |