< prev index next >

src/java.base/share/classes/java/lang/Runtime.java

Updates after review: remove status argument completely from beforeHalt

8041626: Shutdown tracing event
     public void halt(int status) {
         SecurityManager sm = System.getSecurityManager();
         if (sm != null) {
             sm.checkExit(status);
         }
+        Shutdown.beforeHalt();
         Shutdown.halt(status);
     }
 
     /**
      * Enable or disable finalization on exit; doing so specifies that the
    
< prev index next >