src/share/vm/runtime/virtualspace.hpp

changeset 6472
2b8e28fdf503
parent 5859
04b18a42c2f3
child 6198
55fb97c4c58d
equal deleted inserted replaced
6471:3068270ba476 6472:2b8e28fdf503
176 bool special() const { return _special; } 176 bool special() const { return _special; }
177 177
178 public: 178 public:
179 // Initialization 179 // Initialization
180 VirtualSpace(); 180 VirtualSpace();
181 bool initialize_with_granularity(ReservedSpace rs, size_t committed_byte_size, size_t max_commit_ganularity);
181 bool initialize(ReservedSpace rs, size_t committed_byte_size); 182 bool initialize(ReservedSpace rs, size_t committed_byte_size);
182 183
183 // Destruction 184 // Destruction
184 ~VirtualSpace(); 185 ~VirtualSpace();
185 186
186 // Testers (all sizes are byte sizes) 187 // Reserved memory
187 size_t committed_size() const; 188 size_t reserved_size() const;
188 size_t reserved_size() const; 189 // Actually committed OS memory
190 size_t actual_committed_size() const;
191 // Memory used/expanded in this virtual space
192 size_t committed_size() const;
193 // Memory left to use/expand in this virtual space
189 size_t uncommitted_size() const; 194 size_t uncommitted_size() const;
190 bool contains(const void* p) const; 195
196 bool contains(const void* p) const;
191 197
192 // Operations 198 // Operations
193 // returns true on success, false otherwise 199 // returns true on success, false otherwise
194 bool expand_by(size_t bytes, bool pre_touch = false); 200 bool expand_by(size_t bytes, bool pre_touch = false);
195 void shrink_by(size_t bytes); 201 void shrink_by(size_t bytes);
196 void release(); 202 void release();
197 203
198 void check_for_contiguity() PRODUCT_RETURN; 204 void check_for_contiguity() PRODUCT_RETURN;
199 205
200 // Debugging 206 // Debugging
201 void print() PRODUCT_RETURN; 207 void print_on(outputStream* out) PRODUCT_RETURN;
208 void print();
202 }; 209 };
203 210
204 #endif // SHARE_VM_RUNTIME_VIRTUALSPACE_HPP 211 #endif // SHARE_VM_RUNTIME_VIRTUALSPACE_HPP

mercurial