5035 return ret; |
5035 return ret; |
5036 } |
5036 } |
5037 |
5037 |
5038 #ifndef PRODUCT |
5038 #ifndef PRODUCT |
5039 |
5039 |
|
5040 #include "gc_interface/collectedHeap.hpp" |
5040 #include "utilities/quickSort.hpp" |
5041 #include "utilities/quickSort.hpp" |
|
5042 |
|
5043 #define run_unit_test(unit_test_function_call) \ |
|
5044 tty->print_cr("Running test: " #unit_test_function_call); \ |
|
5045 unit_test_function_call |
5041 |
5046 |
5042 void execute_internal_vm_tests() { |
5047 void execute_internal_vm_tests() { |
5043 if (ExecuteInternalVMTests) { |
5048 if (ExecuteInternalVMTests) { |
5044 assert(QuickSort::test_quick_sort(), "test_quick_sort failed"); |
5049 tty->print_cr("Running internal VM tests"); |
5045 assert(arrayOopDesc::test_max_array_length(), "test_max_array_length failed"); |
5050 run_unit_test(arrayOopDesc::test_max_array_length()); |
|
5051 run_unit_test(CollectedHeap::test_is_in()); |
|
5052 run_unit_test(QuickSort::test_quick_sort()); |
5046 tty->print_cr("All internal VM tests passed"); |
5053 tty->print_cr("All internal VM tests passed"); |
5047 } |
5054 } |
5048 } |
5055 } |
|
5056 |
|
5057 #undef run_unit_test |
5049 |
5058 |
5050 #endif |
5059 #endif |
5051 |
5060 |
5052 #ifndef USDT2 |
5061 #ifndef USDT2 |
5053 HS_DTRACE_PROBE_DECL3(hotspot_jni, CreateJavaVM__entry, vm, penv, args); |
5062 HS_DTRACE_PROBE_DECL3(hotspot_jni, CreateJavaVM__entry, vm, penv, args); |