Skip to content

Commit

Permalink
Temp workaround: use a single thread to generate native image
Browse files Browse the repository at this point in the history
    Workaround for oracle/graal#1927

    Should be possible to remove this in 19.3.1

    This is a different problem to the previous one that this
    fix worked around, however because we were using this setting
    we only ran into the thread safety problem after it was removed.
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent d3bfbd3 commit 9163320
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa
Process versionProcess = new ProcessBuilder(versionCommand.toArray(new String[0]))
.redirectErrorStream(true)
.start();
try (BufferedReader reader = new BufferedReader(
new InputStreamReader(versionProcess.getInputStream(), StandardCharsets.UTF_8))) {
try (BufferedReader reader = new BufferedReader(new InputStreamReader(versionProcess.getInputStream()))) {
graalVMVersion = reader.lines().filter((l) -> l.startsWith("GraalVM Version")).findFirst();
}
} catch (Exception e) {
Expand Down

0 comments on commit 9163320

Please sign in to comment.