166 |
166 |
167 // Space enquiries (results in bytes) |
167 // Space enquiries (results in bytes) |
168 virtual size_t capacity() const = 0; // The maximum number of object bytes the |
168 virtual size_t capacity() const = 0; // The maximum number of object bytes the |
169 // generation can currently hold. |
169 // generation can currently hold. |
170 virtual size_t used() const = 0; // The number of used bytes in the gen. |
170 virtual size_t used() const = 0; // The number of used bytes in the gen. |
|
171 virtual size_t used_stable() const; // The number of used bytes for memory monitoring tools. |
171 virtual size_t free() const = 0; // The number of free bytes in the gen. |
172 virtual size_t free() const = 0; // The number of free bytes in the gen. |
172 |
173 |
173 // Support for java.lang.Runtime.maxMemory(); see CollectedHeap. |
174 // Support for java.lang.Runtime.maxMemory(); see CollectedHeap. |
174 // Returns the total number of bytes available in a generation |
175 // Returns the total number of bytes available in a generation |
175 // for the allocation of objects. |
176 // for the allocation of objects. |