Skip to content

Commit

Permalink
Fix invalid handle creation when we know that a compiler is already i…
Browse files Browse the repository at this point in the history
…nitialized.
  • Loading branch information
chumer committed Oct 11, 2021
1 parent de65f76 commit 567a6d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ public void shutdown() {
@SuppressWarnings("try")
public void installTruffleCallBoundaryMethod(ResolvedJavaMethod method) {
try (LibGraalScope scope = new LibGraalScope(LibGraalScope.DetachAction.DETACH_RUNTIME_AND_RELEASE)) {
TruffleToLibGraalCalls.installTruffleCallBoundaryMethod(getIsolateThread(), handle(optionsEncoder(null), null, false), LibGraal.translate(method));
TruffleToLibGraalCalls.installTruffleCallBoundaryMethod(getIsolateThread(), handle(), LibGraal.translate(method));
}
}

@Override
@SuppressWarnings("try")
public void installTruffleReservedOopMethod(ResolvedJavaMethod method) {
try (LibGraalScope scope = new LibGraalScope(LibGraalScope.DetachAction.DETACH_RUNTIME_AND_RELEASE)) {
TruffleToLibGraalCalls.installTruffleReservedOopMethod(getIsolateThread(), handle(optionsEncoder(null), null, false), LibGraal.translate(method));
TruffleToLibGraalCalls.installTruffleReservedOopMethod(getIsolateThread(), handle(), LibGraal.translate(method));
}
}

Expand Down

0 comments on commit 567a6d2

Please sign in to comment.