Skip to content

Commit

Permalink
[GR-51015] Workaround for specjvm2008:mpegaudio concurrency issues
Browse files Browse the repository at this point in the history
PullRequest: graal/16918
  • Loading branch information
c-refice committed Feb 19, 2024
2 parents c1bc909 + 30535e6 commit f2b350f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java-benchmarks/mx.java-benchmarks/mx_java_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,11 @@ def createCommandLineArgs(self, benchmarks, bmSuiteArgs):

vmArgs = self.vmArgs(bmSuiteArgs)
runArgs = self.runArgs(bmSuiteArgs)
if "mpegaudio" in benchmarks:
# GR-51015: run the benchmark on one thread
# as a workaround for mpegaudio concurrency issues.
mx.log("Setting benchmark threads to 1 due to race conditions in mpegaudio benchmark")
runArgs += ["-bt", "1"]

# The startup benchmarks are executed by spawning a new JVM. However, this new VM doesn't
# inherit the flags passed to the main process.
Expand Down

0 comments on commit f2b350f

Please sign in to comment.