< prev index next >

src/share/vm/gc/shared/space.hpp

Print this page

        

*** 365,374 **** --- 365,378 ---- inline size_t obj_size(const HeapWord* addr) const { return oop(addr)->size(); } + inline oop make_oop(HeapWord* addr) const { + return oop(addr); + } + public: CompactibleSpace() : _compaction_top(NULL), _next_compaction_space(NULL) {} virtual void initialize(MemRegion mr, bool clear_space, bool mangle_space);
*** 440,449 **** --- 444,457 ---- // function of the then-current compaction space, and updates "cp->threshold // accordingly". virtual HeapWord* forward(oop q, size_t size, CompactPoint* cp, HeapWord* compact_top); + virtual oop compact_oop(HeapWord* addr) const { + return oop(addr); + } + // Return a size with adjustments as required of the space. virtual size_t adjust_object_size_v(size_t size) const { return size; } protected: // Used during compaction.
< prev index next >