Mercurial > hg > truffle
comparison src/share/vm/runtime/virtualspace.hpp @ 12236:c4c768305a8f
8024638: Count and expose the amount of committed memory in the metaspaces
Reviewed-by: brutisso, ehelin
author | stefank |
---|---|
date | Thu, 12 Sep 2013 10:15:54 +0200 |
parents | 4c84d351cca9 |
children | 8c5e6482cbfc |
comparison
equal
deleted
inserted
replaced
12235:d6c266999345 | 12236:c4c768305a8f |
---|---|
181 bool initialize(ReservedSpace rs, size_t committed_byte_size); | 181 bool initialize(ReservedSpace rs, size_t committed_byte_size); |
182 | 182 |
183 // Destruction | 183 // Destruction |
184 ~VirtualSpace(); | 184 ~VirtualSpace(); |
185 | 185 |
186 // Testers (all sizes are byte sizes) | 186 // Reserved memory |
187 size_t committed_size() const; | 187 size_t reserved_size() const; |
188 size_t reserved_size() const; | 188 // Actually committed OS memory |
189 size_t actual_committed_size() const; | |
190 // Memory used/expanded in this virtual space | |
191 size_t committed_size() const; | |
192 // Memory left to use/expand in this virtual space | |
189 size_t uncommitted_size() const; | 193 size_t uncommitted_size() const; |
190 bool contains(const void* p) const; | 194 |
195 bool contains(const void* p) const; | |
191 | 196 |
192 // Operations | 197 // Operations |
193 // returns true on success, false otherwise | 198 // returns true on success, false otherwise |
194 bool expand_by(size_t bytes, bool pre_touch = false); | 199 bool expand_by(size_t bytes, bool pre_touch = false); |
195 void shrink_by(size_t bytes); | 200 void shrink_by(size_t bytes); |