equal
deleted
inserted
replaced
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. |
619 if (ShowMessageBoxOnError && WizardMode) { |
619 if (ShowMessageBoxOnError && WizardMode) { |
620 fatal("Error occurred during initialization of VM"); |
620 fatal("Error occurred during initialization of VM"); |
621 } |
621 } |
622 } |
622 } |
623 |
623 |
|
624 void vm_exit_during_initialization() { |
|
625 vm_notify_during_shutdown(NULL, NULL); |
|
626 |
|
627 // Failure during initialization, we don't want to dump core |
|
628 vm_abort(false); |
|
629 } |
|
630 |
624 void vm_exit_during_initialization(Handle exception) { |
631 void vm_exit_during_initialization(Handle exception) { |
625 tty->print_cr("Error occurred during initialization of VM"); |
632 tty->print_cr("Error occurred during initialization of VM"); |
626 // If there are exceptions on this thread it must be cleared |
633 // If there are exceptions on this thread it must be cleared |
627 // first and here. Any future calls to EXCEPTION_MARK requires |
634 // first and here. Any future calls to EXCEPTION_MARK requires |
628 // that no pending exceptions exist. |
635 // that no pending exceptions exist. |