< prev index next >

src/share/vm/memory/tenuredGeneration.inline.hpp

Print this page
rev 7420 : [mq]: removeOneContigSpaceGeneration
rev 7421 : imported patch kim-review


  46 HeapWord* TenuredGeneration::allocate(size_t word_size,
  47                                                  bool is_tlab) {
  48   assert(!is_tlab, "TenuredGeneration does not support TLAB allocation");
  49   return the_space()->allocate(word_size);
  50 }
  51 
  52 HeapWord* TenuredGeneration::par_allocate(size_t word_size,
  53                                                      bool is_tlab) {
  54   assert(!is_tlab, "TenuredGeneration does not support TLAB allocation");
  55   return the_space()->par_allocate(word_size);
  56 }
  57 
  58 WaterMark TenuredGeneration::bottom_mark() {
  59   return the_space()->bottom_mark();
  60 }
  61 
  62 size_t TenuredGeneration::block_size(const HeapWord* addr) const {
  63   if (addr < the_space()->top()) return oop(addr)->size();
  64   else {
  65     assert(addr == the_space()->top(), "non-block head arg to block_size");
  66     return the_space()->_end - the_space()->top();
  67   }
  68 }
  69 
  70 bool TenuredGeneration::block_is_obj(const HeapWord* addr) const {
  71   return addr < the_space()->top();
  72 }
  73 
  74 #endif // SHARE_VM_MEMORY_GENERATION_INLINE_HPP


  46 HeapWord* TenuredGeneration::allocate(size_t word_size,
  47                                                  bool is_tlab) {
  48   assert(!is_tlab, "TenuredGeneration does not support TLAB allocation");
  49   return the_space()->allocate(word_size);
  50 }
  51 
  52 HeapWord* TenuredGeneration::par_allocate(size_t word_size,
  53                                                      bool is_tlab) {
  54   assert(!is_tlab, "TenuredGeneration does not support TLAB allocation");
  55   return the_space()->par_allocate(word_size);
  56 }
  57 
  58 WaterMark TenuredGeneration::bottom_mark() {
  59   return the_space()->bottom_mark();
  60 }
  61 
  62 size_t TenuredGeneration::block_size(const HeapWord* addr) const {
  63   if (addr < the_space()->top()) return oop(addr)->size();
  64   else {
  65     assert(addr == the_space()->top(), "non-block head arg to block_size");
  66     return the_space()->end() - the_space()->top();
  67   }
  68 }
  69 
  70 bool TenuredGeneration::block_is_obj(const HeapWord* addr) const {
  71   return addr < the_space()->top();
  72 }
  73 
  74 #endif // SHARE_VM_MEMORY_GENERATION_INLINE_HPP
< prev index next >