Skip to content

Commit eba2866

Browse files
authored
Merge pull request #68 from retronym/topic/stac
Increase JVM stack size
2 parents cb9327b + d3138de commit eba2866

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compilation/src/main/scala/scala/tools/nsc/ScalacBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ object ScalacBenchmarkStandalone {
114114
@BenchmarkMode(Array(SingleShotTime))
115115
@OutputTimeUnit(TimeUnit.MILLISECONDS)
116116
// TODO -Xbatch reduces fork-to-fork variance, but incurs 5s -> 30s slowdown
117-
@Fork(value = 16, jvmArgs = Array("-XX:CICompilerCount=2", "-Xms2G", "-Xmx2G"))
117+
@Fork(value = 16, jvmArgs = Array("-XX:CICompilerCount=2", "-Xms2G", "-Xmx2G", "-Xss2M"))
118118
class ColdScalacBenchmark extends ScalacBenchmark {
119119
@Benchmark
120120
def compile(): Unit = compileImpl()
@@ -124,7 +124,7 @@ class ColdScalacBenchmark extends ScalacBenchmark {
124124
@OutputTimeUnit(TimeUnit.MILLISECONDS)
125125
@Warmup(iterations = 0)
126126
@Measurement(iterations = 1, time = 30, timeUnit = TimeUnit.SECONDS)
127-
@Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G"))
127+
@Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G", "-Xss2M"))
128128
class WarmScalacBenchmark extends ScalacBenchmark {
129129
@Benchmark
130130
def compile(): Unit = compileImpl()
@@ -134,7 +134,7 @@ class WarmScalacBenchmark extends ScalacBenchmark {
134134
@OutputTimeUnit(TimeUnit.MILLISECONDS)
135135
@Warmup(iterations = 10, time = 10, timeUnit = TimeUnit.SECONDS)
136136
@Measurement(iterations = 10, time = 10, timeUnit = TimeUnit.SECONDS)
137-
@Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G"))
137+
@Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G", "-Xss2M"))
138138
class HotScalacBenchmark extends ScalacBenchmark {
139139
@Benchmark
140140
def compile(): Unit = compileImpl()

0 commit comments

Comments
 (0)