src/share/vm/prims/jni.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/prims

src/share/vm/prims/jni.cpp

Print this page
rev 5872 : 8035822: Unable to test minimalVM
Summary: Moved test code inside INCLUDE_ALL_GCS
Reviewed-by: dholmes, stefank


5048 #if INCLUDE_ALL_GCS
5049 #include "gc_implementation/g1/heapRegionRemSet.hpp"
5050 #endif
5051 #include "utilities/quickSort.hpp"
5052 #include "utilities/ostream.hpp"
5053 #if INCLUDE_VM_STRUCTS
5054 #include "runtime/vmStructs.hpp"
5055 #endif
5056 
5057 #define run_unit_test(unit_test_function_call)              \
5058   tty->print_cr("Running test: " #unit_test_function_call); \
5059   unit_test_function_call
5060 
5061 // Forward declaration
5062 void TestReservedSpace_test();
5063 void TestReserveMemorySpecial_test();
5064 void TestVirtualSpace_test();
5065 void TestMetaspaceAux_test();
5066 void TestMetachunk_test();
5067 void TestVirtualSpaceNode_test();
5068 void TestOldFreeSpaceCalculation_test();
5069 #if INCLUDE_ALL_GCS

5070 void TestG1BiasedArray_test();
5071 #endif
5072 
5073 void execute_internal_vm_tests() {
5074   if (ExecuteInternalVMTests) {
5075     tty->print_cr("Running internal VM tests");
5076     run_unit_test(TestReservedSpace_test());
5077     run_unit_test(TestReserveMemorySpecial_test());
5078     run_unit_test(TestVirtualSpace_test());
5079     run_unit_test(TestMetaspaceAux_test());
5080     run_unit_test(TestMetachunk_test());
5081     run_unit_test(TestVirtualSpaceNode_test());
5082     run_unit_test(GlobalDefinitions::test_globals());
5083     run_unit_test(GCTimerAllTest::all());
5084     run_unit_test(arrayOopDesc::test_max_array_length());
5085     run_unit_test(CollectedHeap::test_is_in());
5086     run_unit_test(QuickSort::test_quick_sort());
5087     run_unit_test(AltHashing::test_alt_hash());
5088     run_unit_test(test_loggc_filename());
5089     run_unit_test(TestOldFreeSpaceCalculation_test());
5090 #if INCLUDE_VM_STRUCTS
5091     run_unit_test(VMStructs::test());
5092 #endif
5093 #if INCLUDE_ALL_GCS

5094     run_unit_test(TestG1BiasedArray_test());
5095     run_unit_test(HeapRegionRemSet::test_prt());
5096 #endif
5097     tty->print_cr("All internal VM tests passed");
5098   }
5099 }
5100 
5101 #undef run_unit_test
5102 
5103 #endif
5104 
5105 #ifndef USDT2
5106 HS_DTRACE_PROBE_DECL3(hotspot_jni, CreateJavaVM__entry, vm, penv, args);
5107 DT_RETURN_MARK_DECL(CreateJavaVM, jint);
5108 #else /* USDT2 */
5109 DT_RETURN_MARK_DECL(CreateJavaVM, jint
5110                     , HOTSPOT_JNI_CREATEJAVAVM_RETURN(_ret_ref));
5111 #endif /* USDT2 */
5112 
5113 _JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM(JavaVM **vm, void **penv, void *args) {




5048 #if INCLUDE_ALL_GCS
5049 #include "gc_implementation/g1/heapRegionRemSet.hpp"
5050 #endif
5051 #include "utilities/quickSort.hpp"
5052 #include "utilities/ostream.hpp"
5053 #if INCLUDE_VM_STRUCTS
5054 #include "runtime/vmStructs.hpp"
5055 #endif
5056 
5057 #define run_unit_test(unit_test_function_call)              \
5058   tty->print_cr("Running test: " #unit_test_function_call); \
5059   unit_test_function_call
5060 
5061 // Forward declaration
5062 void TestReservedSpace_test();
5063 void TestReserveMemorySpecial_test();
5064 void TestVirtualSpace_test();
5065 void TestMetaspaceAux_test();
5066 void TestMetachunk_test();
5067 void TestVirtualSpaceNode_test();

5068 #if INCLUDE_ALL_GCS
5069 void TestOldFreeSpaceCalculation_test();
5070 void TestG1BiasedArray_test();
5071 #endif
5072 
5073 void execute_internal_vm_tests() {
5074   if (ExecuteInternalVMTests) {
5075     tty->print_cr("Running internal VM tests");
5076     run_unit_test(TestReservedSpace_test());
5077     run_unit_test(TestReserveMemorySpecial_test());
5078     run_unit_test(TestVirtualSpace_test());
5079     run_unit_test(TestMetaspaceAux_test());
5080     run_unit_test(TestMetachunk_test());
5081     run_unit_test(TestVirtualSpaceNode_test());
5082     run_unit_test(GlobalDefinitions::test_globals());
5083     run_unit_test(GCTimerAllTest::all());
5084     run_unit_test(arrayOopDesc::test_max_array_length());
5085     run_unit_test(CollectedHeap::test_is_in());
5086     run_unit_test(QuickSort::test_quick_sort());
5087     run_unit_test(AltHashing::test_alt_hash());
5088     run_unit_test(test_loggc_filename());

5089 #if INCLUDE_VM_STRUCTS
5090     run_unit_test(VMStructs::test());
5091 #endif
5092 #if INCLUDE_ALL_GCS
5093     run_unit_test(TestOldFreeSpaceCalculation_test());
5094     run_unit_test(TestG1BiasedArray_test());
5095     run_unit_test(HeapRegionRemSet::test_prt());
5096 #endif
5097     tty->print_cr("All internal VM tests passed");
5098   }
5099 }
5100 
5101 #undef run_unit_test
5102 
5103 #endif
5104 
5105 #ifndef USDT2
5106 HS_DTRACE_PROBE_DECL3(hotspot_jni, CreateJavaVM__entry, vm, penv, args);
5107 DT_RETURN_MARK_DECL(CreateJavaVM, jint);
5108 #else /* USDT2 */
5109 DT_RETURN_MARK_DECL(CreateJavaVM, jint
5110                     , HOTSPOT_JNI_CREATEJAVAVM_RETURN(_ret_ref));
5111 #endif /* USDT2 */
5112 
5113 _JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM(JavaVM **vm, void **penv, void *args) {


src/share/vm/prims/jni.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File