1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, 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. |
3714 HOTSPOT_VM_INIT_BEGIN(); |
3714 HOTSPOT_VM_INIT_BEGIN(); |
3715 |
3715 |
3716 // Timing (must come after argument parsing) |
3716 // Timing (must come after argument parsing) |
3717 TraceTime timer("Create VM", TRACETIME_LOG(Info, startuptime)); |
3717 TraceTime timer("Create VM", TRACETIME_LOG(Info, startuptime)); |
3718 |
3718 |
|
3719 // Initialize the os module after parsing the args |
|
3720 jint os_init_2_result = os::init_2(); |
|
3721 if (os_init_2_result != JNI_OK) return os_init_2_result; |
|
3722 |
3719 #ifdef CAN_SHOW_REGISTERS_ON_ASSERT |
3723 #ifdef CAN_SHOW_REGISTERS_ON_ASSERT |
3720 // Initialize assert poison page mechanism. |
3724 // Initialize assert poison page mechanism. |
3721 if (ShowRegistersOnAssert) { |
3725 if (ShowRegistersOnAssert) { |
3722 initialize_assert_poison(); |
3726 initialize_assert_poison(); |
3723 } |
3727 } |
3724 #endif // CAN_SHOW_REGISTERS_ON_ASSERT |
3728 #endif // CAN_SHOW_REGISTERS_ON_ASSERT |
3725 |
|
3726 // Initialize the os module after parsing the args |
|
3727 jint os_init_2_result = os::init_2(); |
|
3728 if (os_init_2_result != JNI_OK) return os_init_2_result; |
|
3729 |
3729 |
3730 SafepointMechanism::initialize(); |
3730 SafepointMechanism::initialize(); |
3731 |
3731 |
3732 jint adjust_after_os_result = Arguments::adjust_after_os(); |
3732 jint adjust_after_os_result = Arguments::adjust_after_os(); |
3733 if (adjust_after_os_result != JNI_OK) return adjust_after_os_result; |
3733 if (adjust_after_os_result != JNI_OK) return adjust_after_os_result; |