equal
deleted
inserted
replaced
122 |
122 |
123 // Size computations. Sizes are in heapwords. |
123 // Size computations. Sizes are in heapwords. |
124 virtual size_t used_in_words() const { return pointer_delta(top(), bottom()); } |
124 virtual size_t used_in_words() const { return pointer_delta(top(), bottom()); } |
125 virtual size_t free_in_words() const { return pointer_delta(end(), top()); } |
125 virtual size_t free_in_words() const { return pointer_delta(end(), top()); } |
126 virtual size_t tlab_capacity(Thread* thr) const { return capacity_in_bytes(); } |
126 virtual size_t tlab_capacity(Thread* thr) const { return capacity_in_bytes(); } |
|
127 virtual size_t tlab_used(Thread* thr) const { return used_in_bytes(); } |
127 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes(); } |
128 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes(); } |
128 |
129 |
129 // Allocation (return NULL if full) |
130 // Allocation (return NULL if full) |
130 virtual HeapWord* allocate(size_t word_size); |
131 virtual HeapWord* allocate(size_t word_size); |
131 virtual HeapWord* cas_allocate(size_t word_size); |
132 virtual HeapWord* cas_allocate(size_t word_size); |