mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
Merge
This commit is contained in:
commit
6a37cbc50c
228 changed files with 4289 additions and 2421 deletions
|
@ -275,6 +275,7 @@ public class Runtime {
|
|||
if (sm != null) {
|
||||
sm.checkExit(status);
|
||||
}
|
||||
Shutdown.beforeHalt();
|
||||
Shutdown.halt(status);
|
||||
}
|
||||
|
||||
|
|
|
@ -140,6 +140,9 @@ class Shutdown {
|
|||
VM.shutdown();
|
||||
}
|
||||
|
||||
/* Notify the VM that it's time to halt. */
|
||||
static native void beforeHalt();
|
||||
|
||||
/* The halt method is synchronized on the halt lock
|
||||
* to avoid corruption of the delete-on-shutdown file list.
|
||||
* It invokes the true native halt method.
|
||||
|
@ -167,6 +170,7 @@ class Shutdown {
|
|||
/* Synchronize on the class object, causing any other thread
|
||||
* that attempts to initiate shutdown to stall indefinitely
|
||||
*/
|
||||
beforeHalt();
|
||||
runHooks();
|
||||
halt(status);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue