--- a/src/hotspot/share/gc/serial/tenuredGeneration.inline.hpp Mon May 07 14:42:05 2018 +0200
+++ b/src/hotspot/share/gc/serial/tenuredGeneration.inline.hpp Mon May 07 14:42:08 2018 +0200
@@ -26,7 +26,7 @@
#define SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP
#include "gc/serial/tenuredGeneration.hpp"
-#include "gc/shared/space.hpp"
+#include "gc/shared/space.inline.hpp"
HeapWord* TenuredGeneration::allocate(size_t word_size,
bool is_tlab) {
@@ -53,4 +53,12 @@
return addr < _the_space ->top();
}
+template <typename OopClosureType>
+void TenuredGeneration::oop_since_save_marks_iterate(OopClosureType* blk) {
+ blk->set_generation(this);
+ _the_space->oop_since_save_marks_iterate(blk);
+ blk->reset_generation();
+ save_marks();
+}
+
#endif // SHARE_VM_GC_SERIAL_TENUREDGENERATION_INLINE_HPP