Skip to content

Commit

Permalink
[GR-52645] Backport to 23.1: NPE while diagnosing compilation failure…
Browse files Browse the repository at this point in the history
… when using compilation in isolate.

PullRequest: graal/17226
  • Loading branch information
tzezula committed Mar 19, 2024
2 parents 93a15ca + c576c1e commit 0e92f11
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void onFailure(TruffleCompilable compilable, String reason, boolean bailo

@Override
public void onCompilationRetry(TruffleCompilable compilable, TruffleCompilationTask task) {
onCompilationRetry0(IsolatedCompileContext.get().getClient(), contextHandle, IsolatedCompileClient.get().hand(task));
onCompilationRetry0(IsolatedCompileContext.get().getClient(), contextHandle);
}

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class, publishAs = CEntryPoint.Publish.NotPublished)
Expand Down Expand Up @@ -117,8 +117,7 @@ private static void onFailure0(@SuppressWarnings("unused") ClientIsolateThread c
}

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class, publishAs = CEntryPoint.Publish.NotPublished)
private static void onCompilationRetry0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<IsolatedEventContext> contextHandle,
@SuppressWarnings("unused") ClientHandle<TruffleCompilationTask> task) {
private static void onCompilationRetry0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<IsolatedEventContext> contextHandle) {
IsolatedEventContext context = IsolatedCompileClient.get().unhand(contextHandle);
context.listener.onCompilationRetry(context.compilable, context.task);
}
Expand Down

0 comments on commit 0e92f11

Please sign in to comment.