hotspot/src/share/vm/runtime/thread.cpp
changeset 44326 6c59cca7ff07
parent 42664 29142a56c193
child 44520 0553e129e0ec
child 46369 3bf4544bec14
equal deleted inserted replaced
44204:8490172c1777 44326:6c59cca7ff07
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  3407   TraceTime timer("Phase2 initialization", TRACETIME_LOG(Info, modules, startuptime));
  3407   TraceTime timer("Phase2 initialization", TRACETIME_LOG(Info, modules, startuptime));
  3408 
  3408 
  3409   Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_System(), true, CHECK);
  3409   Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_System(), true, CHECK);
  3410   instanceKlassHandle klass (THREAD, k);
  3410   instanceKlassHandle klass (THREAD, k);
  3411 
  3411 
  3412   JavaValue result(T_VOID);
  3412   JavaValue result(T_INT);
       
  3413   JavaCallArguments args;
       
  3414   args.push_int(DisplayVMOutputToStderr);
       
  3415   args.push_int(log_is_enabled(Debug, init)); // print stack trace if exception thrown
  3413   JavaCalls::call_static(&result, klass, vmSymbols::initPhase2_name(),
  3416   JavaCalls::call_static(&result, klass, vmSymbols::initPhase2_name(),
  3414                                          vmSymbols::void_method_signature(), CHECK);
  3417                                          vmSymbols::boolean_boolean_int_signature(), &args, CHECK);
       
  3418   if (result.get_jint() != JNI_OK) {
       
  3419     vm_exit_during_initialization(); // no message or exception
       
  3420   }
       
  3421 
  3415   universe_post_module_init();
  3422   universe_post_module_init();
  3416 }
  3423 }
  3417 
  3424 
  3418 // Phase 3. final setup - set security manager, system class loader and TCCL
  3425 // Phase 3. final setup - set security manager, system class loader and TCCL
  3419 //
  3426 //