Fix JFR ModuleRequire and ModuleExport events - #22204
Conversation
|
@tajila can you please review? |
|
jenkins test sanity.functional xlinux jdk17 |
|
|
@tajila how is the failure related? The output suggests |
|
I think there was a hang, did it pass locally for you? |
|
Sorry I didn't realize that was a JFR test. I'm looking into it now. |
|
jenkins test sanity.functional xlinux jdk17 |
|
@tajila sorry, the hang is still there, I'll let you know when it's gone. |
b38f2e5 to
d855598
Compare
|
Missed to call |
| void loadModuleRequireAndModuleExportEvents() | ||
| { | ||
| #ifdef J9VM_THR_PREEMPTIVE | ||
| omrthread_monitor_enter(_vm->classLoaderBlocksMutex); |
There was a problem hiding this comment.
you dont need to acquire this lock, allClassLoadersStartDo does that for you
| { | ||
| #ifdef J9VM_THR_PREEMPTIVE | ||
| omrthread_monitor_enter(_vm->classLoaderBlocksMutex); | ||
| omrthread_monitor_enter(_vm->classLoaderModuleAndLocationMutex); |
There was a problem hiding this comment.
this should be acquired after allClassLoadersStartDo
These two events are sampled events so we cannot use hooks. Instead, we iterate through classloaders and find reads and exports. Signed-off-by: Gengchen Tuo <gengchen.tuo@ibm.com>
|
jenkins test sanity.functional xlinux jdk17 |
|
jenkins test sanity.functional alinux64 jdk21 |
These two events are sampled events so we cannot use hooks. Instead, we iterate through classloaders and find reads and exports.