mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8041626: Shutdown tracing event
Reviewed-by: dholmes, alanb, rriggs
This commit is contained in:
parent
5287d9a366
commit
f2c21c058d
10 changed files with 47 additions and 5 deletions
|
@ -434,6 +434,16 @@ JVM_END
|
|||
|
||||
extern volatile jint vm_created;
|
||||
|
||||
JVM_ENTRY_NO_ENV(void, JVM_BeforeHalt())
|
||||
JVMWrapper("JVM_BeforeHalt");
|
||||
EventShutdown event;
|
||||
if (event.should_commit()) {
|
||||
event.set_reason("Shutdown requested from Java");
|
||||
event.commit();
|
||||
}
|
||||
JVM_END
|
||||
|
||||
|
||||
JVM_ENTRY_NO_ENV(void, JVM_Halt(jint code))
|
||||
before_exit(thread);
|
||||
vm_exit(code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue