Skip to content

Commit

Permalink
[GR-56213] Backport to 24.1: Runtime module layer ordering is not det…
Browse files Browse the repository at this point in the history
…erministic

PullRequest: graal/18418
  • Loading branch information
ivan-ristovic authored and ansalond committed Jul 29, 2024
2 parents 4fd1055 + 9afe63c commit ef229c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ private List<ModuleLayer> synthesizeRuntimeModuleLayers(AfterAnalysisAccessImpl
moduleLayerPairs.put(hostedModuleLayer, runtimeModuleLayer);
}

moduleLayerPairs.remove(ModuleLayer.empty());
return new ArrayList<>(moduleLayerPairs.values());
List<ModuleLayer> runtimeModuleLayers = hostedModuleLayers.stream().map(moduleLayerPairs::get).filter(Objects::nonNull).toList();
return runtimeModuleLayers;
}

private ModuleLayer synthesizeRuntimeModuleLayer(List<ModuleLayer> parentLayers, AnalysisAccessBase accessImpl, ImageClassLoader cl, Set<String> reachableModules,
Expand Down

0 comments on commit ef229c1

Please sign in to comment.