src/share/vm/prims/jni.cpp

Print this page




5024     args->version = JNI_VERSION_1_2;
5025     // javaStackSize is int in arguments structure
5026     assert(jlong(ThreadStackSize) * K < INT_MAX, "integer overflow");
5027     args->javaStackSize = (jint)(ThreadStackSize * K);
5028   }
5029   return ret;
5030 }
5031 
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 
5052 void execute_internal_vm_tests() {
5053   if (ExecuteInternalVMTests) {
5054     tty->print_cr("Running internal VM tests");
5055     run_unit_test(TestReservedSpace_test());
5056     run_unit_test(TestReserveMemorySpecial_test());
5057     run_unit_test(GlobalDefinitions::test_globals());
5058     run_unit_test(GCTimerAllTest::all());
5059     run_unit_test(arrayOopDesc::test_max_array_length());
5060     run_unit_test(CollectedHeap::test_is_in());
5061     run_unit_test(QuickSort::test_quick_sort());
5062     run_unit_test(AltHashing::test_alt_hash());
5063 #if INCLUDE_VM_STRUCTS




5024     args->version = JNI_VERSION_1_2;
5025     // javaStackSize is int in arguments structure
5026     assert(jlong(ThreadStackSize) * K < INT_MAX, "integer overflow");
5027     args->javaStackSize = (jint)(ThreadStackSize * K);
5028   }
5029   return ret;
5030 }
5031 
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 // Forward declaration
5045 void TestReserveMemorySpecial_test();
5046 
5047 #define run_unit_test(unit_test_function_call)              \
5048   tty->print_cr("Running test: " #unit_test_function_call); \
5049   unit_test_function_call
5050 
5051 // Forward declaration
5052 void TestReservedSpace_test();
5053 void TestReserveMemorySpecial_test();
5054 
5055 void execute_internal_vm_tests() {
5056   if (ExecuteInternalVMTests) {
5057     tty->print_cr("Running internal VM tests");
5058     run_unit_test(TestReservedSpace_test());
5059     run_unit_test(TestReserveMemorySpecial_test());
5060     run_unit_test(GlobalDefinitions::test_globals());
5061     run_unit_test(GCTimerAllTest::all());
5062     run_unit_test(arrayOopDesc::test_max_array_length());
5063     run_unit_test(CollectedHeap::test_is_in());
5064     run_unit_test(QuickSort::test_quick_sort());
5065     run_unit_test(AltHashing::test_alt_hash());
5066 #if INCLUDE_VM_STRUCTS