< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page
rev 49255 : 8191101: Show register content in hs-err file on assert
Reviewed-by:


3479     return JNI_ERR;
3480   }
3481 
3482 #if INCLUDE_JVMCI
3483   if (UseJVMCICompiler) {
3484     Compilation_mode = CompMode_server;
3485   }
3486 #endif
3487 
3488 #if INCLUDE_CDS
3489   if (DumpSharedSpaces) {
3490     // Disable biased locking now as it interferes with the clean up of
3491     // the archived Klasses and Java string objects (at dump time only).
3492     UseBiasedLocking = false;
3493   }
3494   if (UseSharedSpaces && patch_mod_javabase) {
3495     no_shared_spaces("CDS is disabled when " JAVA_BASE_NAME " module is patched.");
3496   }
3497 #endif
3498 




3499   return JNI_OK;
3500 }
3501 
3502 // Helper class for controlling the lifetime of JavaVMInitArgs
3503 // objects.  The contents of the JavaVMInitArgs are guaranteed to be
3504 // deleted on the destruction of the ScopedVMInitArgs object.
3505 class ScopedVMInitArgs : public StackObj {
3506  private:
3507   JavaVMInitArgs _args;
3508   char*          _container_name;
3509   bool           _is_set;
3510   char*          _vm_options_file_arg;
3511 
3512  public:
3513   ScopedVMInitArgs(const char *container_name) {
3514     _args.version = JNI_VERSION_1_2;
3515     _args.nOptions = 0;
3516     _args.options = NULL;
3517     _args.ignoreUnrecognized = false;
3518     _container_name = (char *)container_name;




3479     return JNI_ERR;
3480   }
3481 
3482 #if INCLUDE_JVMCI
3483   if (UseJVMCICompiler) {
3484     Compilation_mode = CompMode_server;
3485   }
3486 #endif
3487 
3488 #if INCLUDE_CDS
3489   if (DumpSharedSpaces) {
3490     // Disable biased locking now as it interferes with the clean up of
3491     // the archived Klasses and Java string objects (at dump time only).
3492     UseBiasedLocking = false;
3493   }
3494   if (UseSharedSpaces && patch_mod_javabase) {
3495     no_shared_spaces("CDS is disabled when " JAVA_BASE_NAME " module is patched.");
3496   }
3497 #endif
3498 
3499 #ifndef CAN_SHOW_REGISTERS_ON_ASSERT
3500   UNSUPPORTED_OPTION(ShowRegistersOnAssert);
3501 #endif // CAN_SHOW_REGISTERS_ON_ASSERT
3502 
3503   return JNI_OK;
3504 }
3505 
3506 // Helper class for controlling the lifetime of JavaVMInitArgs
3507 // objects.  The contents of the JavaVMInitArgs are guaranteed to be
3508 // deleted on the destruction of the ScopedVMInitArgs object.
3509 class ScopedVMInitArgs : public StackObj {
3510  private:
3511   JavaVMInitArgs _args;
3512   char*          _container_name;
3513   bool           _is_set;
3514   char*          _vm_options_file_arg;
3515 
3516  public:
3517   ScopedVMInitArgs(const char *container_name) {
3518     _args.version = JNI_VERSION_1_2;
3519     _args.nOptions = 0;
3520     _args.options = NULL;
3521     _args.ignoreUnrecognized = false;
3522     _container_name = (char *)container_name;


< prev index next >