diff src/share/vm/memory/tenuredGeneration.cpp @ 481:7d7a7c599c17

6578152: fill_region_with_object has usability and safety issues Reviewed-by: apetrusenko, ysr
author jcoomes
date Thu, 11 Dec 2008 12:05:08 -0800
parents d1605aabd0a1
children 0fbdb4381b99
line wrap: on
line diff
--- a/src/share/vm/memory/tenuredGeneration.cpp	Wed Dec 10 23:46:10 2008 -0800
+++ b/src/share/vm/memory/tenuredGeneration.cpp	Thu Dec 11 12:05:08 2008 -0800
@@ -387,7 +387,7 @@
               "should contain whole object");
     buf->undo_allocation(obj, word_sz);
   } else {
-    SharedHeap::fill_region_with_object(MemRegion(obj, word_sz));
+    CollectedHeap::fill_with_object(obj, word_sz);
   }
 }