equal
deleted
inserted
replaced
196 |
196 |
197 // ---------- Heap counters and metrics |
197 // ---------- Heap counters and metrics |
198 // |
198 // |
199 private: |
199 private: |
200 size_t _initial_size; |
200 size_t _initial_size; |
|
201 size_t _minimum_size; |
201 DEFINE_PAD_MINUS_SIZE(0, DEFAULT_CACHE_LINE_SIZE, sizeof(volatile size_t)); |
202 DEFINE_PAD_MINUS_SIZE(0, DEFAULT_CACHE_LINE_SIZE, sizeof(volatile size_t)); |
202 volatile size_t _used; |
203 volatile size_t _used; |
203 volatile size_t _committed; |
204 volatile size_t _committed; |
204 volatile size_t _bytes_allocated_since_gc_start; |
205 volatile size_t _bytes_allocated_since_gc_start; |
205 DEFINE_PAD_MINUS_SIZE(1, DEFAULT_CACHE_LINE_SIZE, 0); |
206 DEFINE_PAD_MINUS_SIZE(1, DEFAULT_CACHE_LINE_SIZE, 0); |
214 void increase_allocated(size_t bytes); |
215 void increase_allocated(size_t bytes); |
215 |
216 |
216 size_t bytes_allocated_since_gc_start(); |
217 size_t bytes_allocated_since_gc_start(); |
217 void reset_bytes_allocated_since_gc_start(); |
218 void reset_bytes_allocated_since_gc_start(); |
218 |
219 |
|
220 size_t min_capacity() const; |
219 size_t max_capacity() const; |
221 size_t max_capacity() const; |
220 size_t initial_capacity() const; |
222 size_t initial_capacity() const; |
221 size_t capacity() const; |
223 size_t capacity() const; |
222 size_t used() const; |
224 size_t used() const; |
223 size_t committed() const; |
225 size_t committed() const; |