mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8266936: Add a finalization JFR event
Reviewed-by: coleenp, mchung, egahlin
This commit is contained in:
parent
bcbe3845d9
commit
72a976ef05
36 changed files with 1517 additions and 551 deletions
|
@ -104,6 +104,9 @@
|
|||
#if INCLUDE_JFR
|
||||
#include "jfr/jfr.hpp"
|
||||
#endif
|
||||
#if INCLUDE_MANAGEMENT
|
||||
#include "services/finalizerService.hpp"
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
|
@ -681,6 +684,12 @@ JVM_ENTRY(jobject, JVM_Clone(JNIEnv* env, jobject handle))
|
|||
return JNIHandles::make_local(THREAD, new_obj());
|
||||
JVM_END
|
||||
|
||||
// java.lang.ref.Finalizer ////////////////////////////////////////////////////
|
||||
|
||||
JVM_ENTRY(void, JVM_ReportFinalizationComplete(JNIEnv * env, jobject finalizee))
|
||||
MANAGEMENT_ONLY(FinalizerService::on_complete(JNIHandles::resolve_non_null(finalizee), THREAD);)
|
||||
JVM_END
|
||||
|
||||
// java.io.File ///////////////////////////////////////////////////////////////
|
||||
|
||||
JVM_LEAF(char*, JVM_NativePath(char* path))
|
||||
|
@ -3851,3 +3860,4 @@ JVM_END
|
|||
JVM_ENTRY_NO_ENV(jint, JVM_FindSignal(const char *name))
|
||||
return os::get_signal_number(name);
|
||||
JVM_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue