diff src/share/vm/gc_implementation/shared/mutableSpace.cpp @ 6948:e522a00b91aa

Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/ after NPG - C++ build works
author Doug Simon <doug.simon@oracle.com>
date Mon, 12 Nov 2012 23:14:12 +0100
parents da91efe96a93
children db9981fd3124
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/mutableSpace.cpp	Mon Nov 12 18:11:17 2012 +0100
+++ b/src/share/vm/gc_implementation/shared/mutableSpace.cpp	Mon Nov 12 23:14:12 2012 +0100
@@ -216,7 +216,7 @@
   return (HeapWord*)Atomic::cmpxchg_ptr(obj, top_addr(), expected_top) == expected_top;
 }
 
-void MutableSpace::oop_iterate(OopClosure* cl) {
+void MutableSpace::oop_iterate(ExtendedOopClosure* cl) {
   HeapWord* obj_addr = bottom();
   HeapWord* t = top();
   // Could call objects iterate, but this is easier.
@@ -225,6 +225,15 @@
   }
 }
 
+void MutableSpace::oop_iterate_no_header(OopClosure* cl) {
+  HeapWord* obj_addr = bottom();
+  HeapWord* t = top();
+  // Could call objects iterate, but this is easier.
+  while (obj_addr < t) {
+    obj_addr += oop(obj_addr)->oop_iterate_no_header(cl);
+  }
+}
+
 void MutableSpace::object_iterate(ObjectClosure* cl) {
   HeapWord* p = bottom();
   while (p < top()) {