diff src/share/vm/prims/jni.cpp @ 10333:6702da6b6082

8014405: G1: PerRegionTable::fl_mem_size() calculates size of the free list using wrong element sizes Summary: Instead of using a simple sizeof(), ask the PerRegionTable class about its size when iterating over the free list. Reviewed-by: jwilhelm, brutisso
author tschatzl
date Tue, 21 May 2013 11:30:14 +0200
parents cc32ccaaf47f
children f2110083203d
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp	Tue May 21 10:39:09 2013 +0200
+++ b/src/share/vm/prims/jni.cpp	Tue May 21 11:30:14 2013 +0200
@@ -5015,6 +5015,9 @@
 #ifndef PRODUCT
 
 #include "gc_interface/collectedHeap.hpp"
+#if INCLUDE_ALL_GCS
+#include "gc_implementation/g1/heapRegionRemSet.hpp"
+#endif
 #include "utilities/quickSort.hpp"
 #if INCLUDE_VM_STRUCTS
 #include "runtime/vmStructs.hpp"
@@ -5035,6 +5038,9 @@
 #if INCLUDE_VM_STRUCTS
     run_unit_test(VMStructs::test());
 #endif
+#if INCLUDE_ALL_GCS
+    run_unit_test(HeapRegionRemSet::test_prt());
+#endif
     tty->print_cr("All internal VM tests passed");
   }
 }