5032 #ifndef PRODUCT 5033 5034 #include "gc_implementation/shared/gcTimer.hpp" 5035 #include "gc_interface/collectedHeap.hpp" 5036 #if INCLUDE_ALL_GCS 5037 #include "gc_implementation/g1/heapRegionRemSet.hpp" 5038 #endif 5039 #include "utilities/quickSort.hpp" 5040 #if INCLUDE_VM_STRUCTS 5041 #include "runtime/vmStructs.hpp" 5042 #endif 5043 5044 #define run_unit_test(unit_test_function_call) \ 5045 tty->print_cr("Running test: " #unit_test_function_call); \ 5046 unit_test_function_call 5047 5048 // Forward declaration 5049 void TestReservedSpace_test(); 5050 void TestReserveMemorySpecial_test(); 5051 void TestVirtualSpace_test(); 5052 void MetaspaceAux_test(); 5053 5054 void execute_internal_vm_tests() { 5055 if (ExecuteInternalVMTests) { 5056 tty->print_cr("Running internal VM tests"); 5057 run_unit_test(TestReservedSpace_test()); 5058 run_unit_test(TestReserveMemorySpecial_test()); 5059 run_unit_test(TestVirtualSpace_test()); 5060 run_unit_test(MetaspaceAux_test()); 5061 run_unit_test(GlobalDefinitions::test_globals()); 5062 run_unit_test(GCTimerAllTest::all()); 5063 run_unit_test(arrayOopDesc::test_max_array_length()); 5064 run_unit_test(CollectedHeap::test_is_in()); 5065 run_unit_test(QuickSort::test_quick_sort()); 5066 run_unit_test(AltHashing::test_alt_hash()); 5067 #if INCLUDE_VM_STRUCTS 5068 run_unit_test(VMStructs::test()); 5069 #endif 5070 #if INCLUDE_ALL_GCS 5071 run_unit_test(HeapRegionRemSet::test_prt()); 5072 #endif 5073 tty->print_cr("All internal VM tests passed"); 5074 } 5075 } 5076 5077 #undef run_unit_test 5078 5079 #endif 5080 | 5032 #ifndef PRODUCT 5033 5034 #include "gc_implementation/shared/gcTimer.hpp" 5035 #include "gc_interface/collectedHeap.hpp" 5036 #if INCLUDE_ALL_GCS 5037 #include "gc_implementation/g1/heapRegionRemSet.hpp" 5038 #endif 5039 #include "utilities/quickSort.hpp" 5040 #if INCLUDE_VM_STRUCTS 5041 #include "runtime/vmStructs.hpp" 5042 #endif 5043 5044 #define run_unit_test(unit_test_function_call) \ 5045 tty->print_cr("Running test: " #unit_test_function_call); \ 5046 unit_test_function_call 5047 5048 // Forward declaration 5049 void TestReservedSpace_test(); 5050 void TestReserveMemorySpecial_test(); 5051 void TestVirtualSpace_test(); 5052 void TestMetaspaceAux_test(); 5053 5054 void execute_internal_vm_tests() { 5055 if (ExecuteInternalVMTests) { 5056 tty->print_cr("Running internal VM tests"); 5057 run_unit_test(TestReservedSpace_test()); 5058 run_unit_test(TestReserveMemorySpecial_test()); 5059 run_unit_test(TestVirtualSpace_test()); 5060 run_unit_test(TestMetaspaceAux_test()); 5061 run_unit_test(GlobalDefinitions::test_globals()); 5062 run_unit_test(GCTimerAllTest::all()); 5063 run_unit_test(arrayOopDesc::test_max_array_length()); 5064 run_unit_test(CollectedHeap::test_is_in()); 5065 run_unit_test(QuickSort::test_quick_sort()); 5066 run_unit_test(AltHashing::test_alt_hash()); 5067 #if INCLUDE_VM_STRUCTS 5068 run_unit_test(VMStructs::test()); 5069 #endif 5070 #if INCLUDE_ALL_GCS 5071 run_unit_test(HeapRegionRemSet::test_prt()); 5072 #endif 5073 tty->print_cr("All internal VM tests passed"); 5074 } 5075 } 5076 5077 #undef run_unit_test 5078 5079 #endif 5080 |