Skip to content

Commit

Permalink
[GR-61239] Fix BuildPhaseProvider.is*Finished() so that these methods…
Browse files Browse the repository at this point in the history
… can be used at any time during the image build.

PullRequest: graal/19804
  • Loading branch information
christianhaeubl committed Jan 15, 2025
2 parents 1155311 + 7c61cfc commit 790f2ee
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,47 +65,47 @@ public static void markAnalysisFinished() {
}

public static boolean isAnalysisFinished() {
return singleton().analysisFinished;
return ImageSingletons.contains(BuildPhaseProvider.class) && singleton().analysisFinished;
}

public static void markHostedUniverseBuilt() {
singleton().hostedUniverseBuilt = true;
}

public static boolean isHostedUniverseBuilt() {
return singleton().hostedUniverseBuilt;
return ImageSingletons.contains(BuildPhaseProvider.class) && singleton().hostedUniverseBuilt;
}

public static void markReadyForCompilation() {
singleton().readyForCompilation = true;
}

public static boolean isReadyForCompilation() {
return singleton().readyForCompilation;
return ImageSingletons.contains(BuildPhaseProvider.class) && singleton().readyForCompilation;
}

public static void markCompileQueueFinished() {
singleton().compileQueueFinished = true;
}

public static boolean isCompileQueueFinished() {
return singleton().compileQueueFinished;
return ImageSingletons.contains(BuildPhaseProvider.class) && singleton().compileQueueFinished;
}

public static void markCompilationFinished() {
singleton().compilationFinished = true;
}

public static boolean isCompilationFinished() {
return singleton().compilationFinished;
return ImageSingletons.contains(BuildPhaseProvider.class) && singleton().compilationFinished;
}

public static void markHeapLayoutFinished() {
singleton().heapLayoutFinished = true;
}

public static boolean isHeapLayoutFinished() {
return singleton().heapLayoutFinished;
return ImageSingletons.contains(BuildPhaseProvider.class) && singleton().heapLayoutFinished;
}

public static class AfterAnalysis implements BooleanSupplier {
Expand Down

0 comments on commit 790f2ee

Please sign in to comment.