--- a/hotspot/src/share/vm/gc/shared/space.inline.hpp Wed Jan 27 11:41:44 2016 +0100
+++ b/hotspot/src/share/vm/gc/shared/space.inline.hpp Mon Jan 18 10:25:41 2016 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -72,6 +72,10 @@
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
@@ -331,4 +335,9 @@
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