src/hotspot/share/gc/serial/defNewGeneration.inline.hpp
changeset 50034 01a88f825a84
parent 49592 77fb0be7d19f
child 50728 9375184cec98
--- a/src/hotspot/share/gc/serial/defNewGeneration.inline.hpp	Mon May 07 14:42:05 2018 +0200
+++ b/src/hotspot/share/gc/serial/defNewGeneration.inline.hpp	Mon May 07 14:42:08 2018 +0200
@@ -29,7 +29,7 @@
 #include "gc/shared/cardTableRS.hpp"
 #include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/genOopClosures.inline.hpp"
-#include "gc/shared/space.hpp"
+#include "gc/shared/space.inline.hpp"
 #include "oops/access.inline.hpp"
 
 // Methods of protected closure types
@@ -88,4 +88,14 @@
   }
 }
 
+template <typename OopClosureType>
+void DefNewGeneration::oop_since_save_marks_iterate(OopClosureType* cl) {
+  cl->set_generation(this);
+  eden()->oop_since_save_marks_iterate(cl);
+  to()->oop_since_save_marks_iterate(cl);
+  from()->oop_since_save_marks_iterate(cl);
+  cl->reset_generation();
+  save_marks();
+}
+
 #endif // SHARE_VM_GC_SERIAL_DEFNEWGENERATION_INLINE_HPP