< prev index next >
src/share/vm/memory/tenuredGeneration.inline.hpp
Print this page
rev 7420 : [mq]: removeOneContigSpaceGeneration
rev 7421 : imported patch kim-review
*** 61,71 ****
size_t TenuredGeneration::block_size(const HeapWord* addr) const {
if (addr < the_space()->top()) return oop(addr)->size();
else {
assert(addr == the_space()->top(), "non-block head arg to block_size");
! return the_space()->_end - the_space()->top();
}
}
bool TenuredGeneration::block_is_obj(const HeapWord* addr) const {
return addr < the_space()->top();
--- 61,71 ----
size_t TenuredGeneration::block_size(const HeapWord* addr) const {
if (addr < the_space()->top()) return oop(addr)->size();
else {
assert(addr == the_space()->top(), "non-block head arg to block_size");
! return the_space()->end() - the_space()->top();
}
}
bool TenuredGeneration::block_is_obj(const HeapWord* addr) const {
return addr < the_space()->top();
< prev index next >