Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/shared/mutableSpace.hpp @ 14310:1e1c8d358b52
8030177: G1: Enable TLAB resizing
Reviewed-by: tschatzl, stefank, jmasa
author | brutisso |
---|---|
date | Mon, 27 Jan 2014 13:14:53 +0100 |
parents | 63a4eb8bcd23 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14309:63a4eb8bcd23 | 14310:1e1c8d358b52 |
---|---|
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); |