< prev index next >
src/share/vm/gc/shared/space.inline.hpp
Print this page
rev 9847 : 8146395: Add inline qualifier in oop.hpp and fix inlining in gc files
Summary: Fix remaining issues after 8146401
@@ -70,10 +70,14 @@
inline HeapWord*
OffsetTableContigSpace::block_start_const(const void* p) const {
return _offsets.block_start(p);
}
+size_t CompactibleSpace::obj_size(const HeapWord* addr) const {
+ return oop(addr)->size();
+}
+
template <class SpaceType>
inline void CompactibleSpace::scan_and_forward(SpaceType* space, CompactPoint* cp) {
// Compute the new addresses for the live objects and store it in the mark
// Used by universe::mark_sweep_phase2()
HeapWord* compact_top; // This is where we are currently compacting to.
@@ -329,6 +333,11 @@
if (!was_empty) space->clear(SpaceDecorator::Mangle);
} else {
if (ZapUnusedHeapArea) space->mangle_unused_area();
}
}
+
+size_t ContiguousSpace::scanned_block_size(const HeapWord* addr) const {
+ return oop(addr)->size();
+}
+
#endif // SHARE_VM_GC_SHARED_SPACE_INLINE_HPP
< prev index next >