8288984: Simplification in java.lang.Runtime::exit

Reviewed-by: dholmes, chegar, alanb, kbarrett
This commit is contained in:
Ryan Ernst 2022-07-12 13:50:36 +00:00 committed by Chris Hegarty
parent 393dc7ade7
commit ea12615d2f
2 changed files with 5 additions and 10 deletions

View file

@ -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