Closed dragos closed 4 years ago
I get the same on MacOS with AdoptOpenJDK 1.8.0_222-b10, but it works after a bootstrap. The reason is that it's a compiler change (https://github.com/scala/scala/commit/8f657162dc) that makes it work, but without a bootstrap JUnit tests are compiled using the reference compiler (STARR).
So this test should have been done as partest, at least until bumping the starr - which actually happened on 2.12.x in the meantime (https://github.com/scala/scala/commit/71114c87df7d3ea17d88b368dbcccd2a154cbec5). So it doesn't make sense to change it at this point.
Sorry for the confusion 😕
reproduction steps
I checked out tag
v2.12.12
, entered Sbt and ran junit tests.problem
I noted the same failure with Oracle Java 8, OpenJDK 11, Mac and Linux. If I increase the warmup times to 100000 I can get that allocation number to 80, but not lower.
What is the right way to run this test?