Skip to content

Commit

Permalink
[GR-52302] NPE while diagnosing compilation failure when using compil…
Browse files Browse the repository at this point in the history
…ation in isolate.

(cherry picked from commit 5b48787)
  • Loading branch information
tzezula committed Mar 12, 2024
1 parent 55b4d41 commit c576c1e
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 c576c1e

Please sign in to comment.