Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jni.cpp @ 4708:3c648b9ad052
7121373: Clean up CollectedHeap::is_in
Summary: Fixed G1CollectedHeap::is_in, added tests, cleaned up comments and made Space::is_in pure virtual.
Reviewed-by: brutisso, tonyp, jcoomes
author | stefank |
---|---|
date | Wed, 14 Dec 2011 12:15:26 +0100 |
parents | 6fd81579526f |
children | 94ec88ca68e2 |
comparison
equal
deleted
inserted
replaced
4132:6d7d0790074d | 4708:3c648b9ad052 |
---|---|
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); |