< prev index next >
src/share/vm/gc/g1/heapRegion.inline.hpp
Print this page
@@ -30,11 +30,11 @@
#include "gc/g1/heapRegion.hpp"
#include "gc/shared/space.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/atomic.inline.hpp"
-inline HeapWord* G1OffsetTableContigSpace::allocate_impl(size_t min_word_size,
+inline HeapWord* G1ContiguousSpace::allocate_impl(size_t min_word_size,
size_t desired_word_size,
size_t* actual_size) {
HeapWord* obj = top();
size_t available = pointer_delta(end(), obj);
size_t want_to_allocate = MIN2(available, desired_word_size);
@@ -47,11 +47,11 @@
} else {
return NULL;
}
}
-inline HeapWord* G1OffsetTableContigSpace::par_allocate_impl(size_t min_word_size,
+inline HeapWord* G1ContiguousSpace::par_allocate_impl(size_t min_word_size,
size_t desired_word_size,
size_t* actual_size) {
do {
HeapWord* obj = top();
size_t available = pointer_delta(end(), obj);
@@ -71,47 +71,47 @@
return NULL;
}
} while (true);
}
-inline HeapWord* G1OffsetTableContigSpace::allocate(size_t min_word_size,
+inline HeapWord* G1ContiguousSpace::allocate(size_t min_word_size,
size_t desired_word_size,
size_t* actual_size) {
HeapWord* res = allocate_impl(min_word_size, desired_word_size, actual_size);
if (res != NULL) {
- _offsets.alloc_block(res, *actual_size);
+ _bot_part.alloc_block(res, *actual_size);
}
return res;
}
-inline HeapWord* G1OffsetTableContigSpace::allocate(size_t word_size) {
+inline HeapWord* G1ContiguousSpace::allocate(size_t word_size) {
size_t temp;
return allocate(word_size, word_size, &temp);
}
-inline HeapWord* G1OffsetTableContigSpace::par_allocate(size_t word_size) {
+inline HeapWord* G1ContiguousSpace::par_allocate(size_t word_size) {
size_t temp;
return par_allocate(word_size, word_size, &temp);
}
// Because of the requirement of keeping "_offsets" up to date with the
// allocations, we sequentialize these with a lock. Therefore, best if
// this is used for larger LAB allocations only.
-inline HeapWord* G1OffsetTableContigSpace::par_allocate(size_t min_word_size,
+inline HeapWord* G1ContiguousSpace::par_allocate(size_t min_word_size,
size_t desired_word_size,
size_t* actual_size) {
MutexLocker x(&_par_alloc_lock);
return allocate(min_word_size, desired_word_size, actual_size);
}
-inline HeapWord* G1OffsetTableContigSpace::block_start(const void* p) {
- return _offsets.block_start(p);
+inline HeapWord* G1ContiguousSpace::block_start(const void* p) {
+ return _bot_part.block_start(p);
}
inline HeapWord*
-G1OffsetTableContigSpace::block_start_const(const void* p) const {
- return _offsets.block_start_const(p);
+G1ContiguousSpace::block_start_const(const void* p) const {
+ return _bot_part.block_start_const(p);
}
inline bool
HeapRegion::block_is_obj(const HeapWord* p) const {
G1CollectedHeap* g1h = G1CollectedHeap::heap();
< prev index next >