mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -83,6 +83,7 @@
|
|||
#include "runtime/reflectionUtils.hpp"
|
||||
#include "runtime/thread.inline.hpp"
|
||||
#include "services/classLoadingService.hpp"
|
||||
#include "services/finalizerService.hpp"
|
||||
#include "services/threadService.hpp"
|
||||
#include "utilities/dtrace.hpp"
|
||||
#include "utilities/events.hpp"
|
||||
|
@ -96,7 +97,6 @@
|
|||
#include "jfr/jfrEvents.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef DTRACE_ENABLED
|
||||
|
||||
|
||||
|
@ -1405,8 +1405,9 @@ instanceOop InstanceKlass::register_finalizer(instanceOop i, TRAPS) {
|
|||
// Pass the handle as argument, JavaCalls::call expects oop as jobjects
|
||||
JavaValue result(T_VOID);
|
||||
JavaCallArguments args(h_i);
|
||||
methodHandle mh (THREAD, Universe::finalizer_register_method());
|
||||
methodHandle mh(THREAD, Universe::finalizer_register_method());
|
||||
JavaCalls::call(&result, mh, &args, CHECK_NULL);
|
||||
MANAGEMENT_ONLY(FinalizerService::on_register(h_i(), THREAD);)
|
||||
return h_i();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue