comparison 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
comparison
equal deleted inserted replaced
10332:5ed122fbd0ef 10333:6702da6b6082
5013 } 5013 }
5014 5014
5015 #ifndef PRODUCT 5015 #ifndef PRODUCT
5016 5016
5017 #include "gc_interface/collectedHeap.hpp" 5017 #include "gc_interface/collectedHeap.hpp"
5018 #if INCLUDE_ALL_GCS
5019 #include "gc_implementation/g1/heapRegionRemSet.hpp"
5020 #endif
5018 #include "utilities/quickSort.hpp" 5021 #include "utilities/quickSort.hpp"
5019 #if INCLUDE_VM_STRUCTS 5022 #if INCLUDE_VM_STRUCTS
5020 #include "runtime/vmStructs.hpp" 5023 #include "runtime/vmStructs.hpp"
5021 #endif 5024 #endif
5022 5025
5032 run_unit_test(CollectedHeap::test_is_in()); 5035 run_unit_test(CollectedHeap::test_is_in());
5033 run_unit_test(QuickSort::test_quick_sort()); 5036 run_unit_test(QuickSort::test_quick_sort());
5034 run_unit_test(AltHashing::test_alt_hash()); 5037 run_unit_test(AltHashing::test_alt_hash());
5035 #if INCLUDE_VM_STRUCTS 5038 #if INCLUDE_VM_STRUCTS
5036 run_unit_test(VMStructs::test()); 5039 run_unit_test(VMStructs::test());
5040 #endif
5041 #if INCLUDE_ALL_GCS
5042 run_unit_test(HeapRegionRemSet::test_prt());
5037 #endif 5043 #endif
5038 tty->print_cr("All internal VM tests passed"); 5044 tty->print_cr("All internal VM tests passed");
5039 } 5045 }
5040 } 5046 }
5041 5047