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

src/share/vm/prims/jni.cpp

Print this page




5025   // stack size.
5026   if (args->version == JNI_VERSION_1_1) {
5027     args->version = JNI_VERSION_1_2;
5028     // javaStackSize is int in arguments structure
5029     assert(jlong(ThreadStackSize) * K < INT_MAX, "integer overflow");
5030     args->javaStackSize = (jint)(ThreadStackSize * K);
5031   }
5032   return ret;
5033 }
5034 
5035 #ifndef PRODUCT
5036 
5037 #include "gc_implementation/shared/gcTimer.hpp"
5038 #include "gc_interface/collectedHeap.hpp"
5039 #include "utilities/quickSort.hpp"
5040 
5041 #define run_unit_test(unit_test_function_call)              \
5042   tty->print_cr("Running test: " #unit_test_function_call); \
5043   unit_test_function_call
5044 




5045 void execute_internal_vm_tests() {
5046   if (ExecuteInternalVMTests) {
5047     tty->print_cr("Running internal VM tests");


5048     run_unit_test(GCTimerAllTest::all());
5049     run_unit_test(arrayOopDesc::test_max_array_length());
5050     run_unit_test(CollectedHeap::test_is_in());
5051     run_unit_test(QuickSort::test_quick_sort());
5052     run_unit_test(AltHashing::test_alt_hash());
5053     tty->print_cr("All internal VM tests passed");
5054   }
5055 }
5056 
5057 #undef run_unit_test
5058 
5059 #endif
5060 
5061 #ifndef USDT2
5062 HS_DTRACE_PROBE_DECL3(hotspot_jni, CreateJavaVM__entry, vm, penv, args);
5063 DT_RETURN_MARK_DECL(CreateJavaVM, jint);
5064 #else /* USDT2 */
5065 DT_RETURN_MARK_DECL(CreateJavaVM, jint
5066                     , HOTSPOT_JNI_CREATEJAVAVM_RETURN(_ret_ref));
5067 #endif /* USDT2 */




5025   // stack size.
5026   if (args->version == JNI_VERSION_1_1) {
5027     args->version = JNI_VERSION_1_2;
5028     // javaStackSize is int in arguments structure
5029     assert(jlong(ThreadStackSize) * K < INT_MAX, "integer overflow");
5030     args->javaStackSize = (jint)(ThreadStackSize * K);
5031   }
5032   return ret;
5033 }
5034 
5035 #ifndef PRODUCT
5036 
5037 #include "gc_implementation/shared/gcTimer.hpp"
5038 #include "gc_interface/collectedHeap.hpp"
5039 #include "utilities/quickSort.hpp"
5040 
5041 #define run_unit_test(unit_test_function_call)              \
5042   tty->print_cr("Running test: " #unit_test_function_call); \
5043   unit_test_function_call
5044 
5045 // Forward declaration
5046 void TestReservedSpace_test();
5047 void TestReserveMemorySpecial_test();
5048 
5049 void execute_internal_vm_tests() {
5050   if (ExecuteInternalVMTests) {
5051     tty->print_cr("Running internal VM tests");
5052     run_unit_test(TestReservedSpace_test());
5053     run_unit_test(TestReserveMemorySpecial_test());
5054     run_unit_test(GCTimerAllTest::all());
5055     run_unit_test(arrayOopDesc::test_max_array_length());
5056     run_unit_test(CollectedHeap::test_is_in());
5057     run_unit_test(QuickSort::test_quick_sort());
5058     run_unit_test(AltHashing::test_alt_hash());
5059     tty->print_cr("All internal VM tests passed");
5060   }
5061 }
5062 
5063 #undef run_unit_test
5064 
5065 #endif
5066 
5067 #ifndef USDT2
5068 HS_DTRACE_PROBE_DECL3(hotspot_jni, CreateJavaVM__entry, vm, penv, args);
5069 DT_RETURN_MARK_DECL(CreateJavaVM, jint);
5070 #else /* USDT2 */
5071 DT_RETURN_MARK_DECL(CreateJavaVM, jint
5072                     , HOTSPOT_JNI_CREATEJAVAVM_RETURN(_ret_ref));
5073 #endif /* USDT2 */


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