Skip to content

Commit 75d9412

Browse files
committed
fix invoke kind to static when agent calls method to add module reads
1 parent b8809c9 commit 75d9412

File tree

1 file changed

+1
-1
lines changed
  • espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime

1 file changed

+1
-1
lines changed

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JavaAgents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public void grantReadAccessToUnnamedModules(ModuleTable.ModuleEntry module) {
419419
// we lost the race, so nothing to do
420420
return;
421421
}
422-
getContext().getMeta().jdk_internal_module_Modules_transformedByAgent.invokeDirect(module.module());
422+
getContext().getMeta().jdk_internal_module_Modules_transformedByAgent.invokeDirectStatic(module.module());
423423
// no reason to call into guest for a module more than once,
424424
// so flip the hasDefaultReads flag
425425
module.setHasDefaultReads();

0 commit comments

Comments
 (0)