src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp

Print this page
rev 7084 : [mq]: demacro

*** 403,412 **** --- 403,433 ---- bool block_is_obj(const HeapWord* p) const; bool obj_is_alive(const HeapWord* p) const; size_t block_size_nopar(const HeapWord* p) const; bool block_is_obj_nopar(const HeapWord* p) const; + // Functions for scan_and_{forward,adjust_pointers,compact} support. + inline HeapWord* scan_limit() const { + return end(); + } + + inline bool scanned_block_is_obj(const HeapWord* addr) const { + return CompactibleFreeListSpace::block_is_obj(addr); // Avoid virtual call + } + + inline size_t scanned_block_size(const HeapWord* addr) const { + return CompactibleFreeListSpace::block_size(addr); // Avoid virtual call + } + + inline size_t adjust_obj_size(size_t size) const { + return adjustObjectSize(size); + } + + inline size_t obj_size(const HeapWord* addr) const { + return adjustObjectSize(oop(addr)->size()); + } + // Iteration support for promotion void save_marks(); bool no_allocs_since_save_marks(); // Iteration support for sweeping