equal
deleted
inserted
replaced
24 |
24 |
25 #ifndef SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP |
25 #ifndef SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP |
26 #define SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP |
26 #define SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP |
27 |
27 |
28 #include "gc/serial/tenuredGeneration.hpp" |
28 #include "gc/serial/tenuredGeneration.hpp" |
29 #include "gc/shared/space.hpp" |
29 #include "gc/shared/space.inline.hpp" |
30 |
30 |
31 HeapWord* TenuredGeneration::allocate(size_t word_size, |
31 HeapWord* TenuredGeneration::allocate(size_t word_size, |
32 bool is_tlab) { |
32 bool is_tlab) { |
33 assert(!is_tlab, "TenuredGeneration does not support TLAB allocation"); |
33 assert(!is_tlab, "TenuredGeneration does not support TLAB allocation"); |
34 return _the_space->allocate(word_size); |
34 return _the_space->allocate(word_size); |
51 |
51 |
52 bool TenuredGeneration::block_is_obj(const HeapWord* addr) const { |
52 bool TenuredGeneration::block_is_obj(const HeapWord* addr) const { |
53 return addr < _the_space ->top(); |
53 return addr < _the_space ->top(); |
54 } |
54 } |
55 |
55 |
|
56 template <typename OopClosureType> |
|
57 void TenuredGeneration::oop_since_save_marks_iterate(OopClosureType* blk) { |
|
58 blk->set_generation(this); |
|
59 _the_space->oop_since_save_marks_iterate(blk); |
|
60 blk->reset_generation(); |
|
61 save_marks(); |
|
62 } |
|
63 |
56 #endif // SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP |
64 #endif // SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP |