mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8288984: Simplification in java.lang.Runtime::exit
Reviewed-by: dholmes, chegar, alanb, kbarrett
This commit is contained in:
parent
393dc7ade7
commit
ea12615d2f
2 changed files with 5 additions and 10 deletions
|
@ -159,12 +159,6 @@ class Shutdown {
|
|||
* which should pass a nonzero status code.
|
||||
*/
|
||||
static void exit(int status) {
|
||||
synchronized (lock) {
|
||||
if (status != 0 && VM.isShutdown()) {
|
||||
/* Halt immediately on nonzero status */
|
||||
halt(status);
|
||||
}
|
||||
}
|
||||
synchronized (Shutdown.class) {
|
||||
/* Synchronize on the class object, causing any other thread
|
||||
* that attempts to initiate shutdown to stall indefinitely
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue