5010 } 5011 return ret; 5012 } 5013 5014 #ifndef PRODUCT 5015 5016 #include "gc_implementation/shared/gcTimer.hpp" 5017 #include "gc_interface/collectedHeap.hpp" 5018 #if INCLUDE_ALL_GCS 5019 #include "gc_implementation/g1/heapRegionRemSet.hpp" 5020 #endif 5021 #include "utilities/quickSort.hpp" 5022 #if INCLUDE_VM_STRUCTS 5023 #include "runtime/vmStructs.hpp" 5024 #endif 5025 5026 #define run_unit_test(unit_test_function_call) \ 5027 tty->print_cr("Running test: " #unit_test_function_call); \ 5028 unit_test_function_call 5029 5030 void execute_internal_vm_tests() { 5031 if (ExecuteInternalVMTests) { 5032 tty->print_cr("Running internal VM tests"); 5033 run_unit_test(GlobalDefinitions::test_globals()); 5034 run_unit_test(GCTimerAllTest::all()); 5035 run_unit_test(arrayOopDesc::test_max_array_length()); 5036 run_unit_test(CollectedHeap::test_is_in()); 5037 run_unit_test(QuickSort::test_quick_sort()); 5038 run_unit_test(AltHashing::test_alt_hash()); 5039 #if INCLUDE_VM_STRUCTS 5040 run_unit_test(VMStructs::test()); 5041 #endif 5042 #if INCLUDE_ALL_GCS 5043 run_unit_test(HeapRegionRemSet::test_prt()); 5044 #endif 5045 tty->print_cr("All internal VM tests passed"); 5046 } 5047 } 5048 5049 #undef run_unit_test 5050 5051 #endif 5052 | 5010 } 5011 return ret; 5012 } 5013 5014 #ifndef PRODUCT 5015 5016 #include "gc_implementation/shared/gcTimer.hpp" 5017 #include "gc_interface/collectedHeap.hpp" 5018 #if INCLUDE_ALL_GCS 5019 #include "gc_implementation/g1/heapRegionRemSet.hpp" 5020 #endif 5021 #include "utilities/quickSort.hpp" 5022 #if INCLUDE_VM_STRUCTS 5023 #include "runtime/vmStructs.hpp" 5024 #endif 5025 5026 #define run_unit_test(unit_test_function_call) \ 5027 tty->print_cr("Running test: " #unit_test_function_call); \ 5028 unit_test_function_call 5029 5030 // Forward declaration 5031 void TestReservedSpace_test(); 5032 void TestReserveMemorySpecial_test(); 5033 5034 void execute_internal_vm_tests() { 5035 if (ExecuteInternalVMTests) { 5036 tty->print_cr("Running internal VM tests"); 5037 run_unit_test(TestReservedSpace_test()); 5038 run_unit_test(TestReserveMemorySpecial_test()); 5039 run_unit_test(GlobalDefinitions::test_globals()); 5040 run_unit_test(GCTimerAllTest::all()); 5041 run_unit_test(arrayOopDesc::test_max_array_length()); 5042 run_unit_test(CollectedHeap::test_is_in()); 5043 run_unit_test(QuickSort::test_quick_sort()); 5044 run_unit_test(AltHashing::test_alt_hash()); 5045 #if INCLUDE_VM_STRUCTS 5046 run_unit_test(VMStructs::test()); 5047 #endif 5048 #if INCLUDE_ALL_GCS 5049 run_unit_test(HeapRegionRemSet::test_prt()); 5050 #endif 5051 tty->print_cr("All internal VM tests passed"); 5052 } 5053 } 5054 5055 #undef run_unit_test 5056 5057 #endif 5058 |