Closed
Description
We introduced some non-determinism that affects that makes the compilation of dotty itself produce 2 slightly different versions of the bytecode. This is not critical for the generated bytecode but we should find the source of it a patch it.
20-12-10T08:37:40.8662546Z [info] Test dotty.tools.dotc.CompilationTests.tastyBootstrap started
2020-12-10T08:39:32.6336091Z Test 'idempotency from tastyBootstrap/tests' failed with output:
2020-12-10T08:39:32.6339175Z Idempotency test failed between out/tastyBootstrap/dotty1/dotty1/dotty/tools/dotc/core/Definitions.class and out/tastyBootstrap/dotty2/dotty2/dotty/tools/dotc/core/Definitions.class (same tasty)
2020-12-10T08:39:32.6342679Z Exception in thread "main" java.lang.reflect.InvocationTargetException
2020-12-10T08:39:32.6346076Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-12-10T08:39:32.6350695Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
2020-12-10T08:39:32.6355620Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-12-10T08:39:32.6359294Z at java.base/java.lang.reflect.Method.invoke(Method.java:564)
2020-12-10T08:39:32.6361659Z at dotty.tools.vulpix.ChildJVMMain.runMain(ChildJVMMain.java:40)
2020-12-10T08:39:32.6364207Z at dotty.tools.vulpix.ChildJVMMain.main(ChildJVMMain.java:47)
2020-12-10T08:39:32.6366595Z Caused by: java.lang.AssertionError: assertion failed: Failed 1 idempotency checks (out of 756)
2020-12-10T08:39:32.6368988Z at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
2020-12-10T08:39:32.6371341Z at IdempotencyCheck$.checkIdempotency(IdempotencyCheck.scala:70)
2020-12-10T08:39:32.6373232Z at Test$.main(BootstrapChecker.scala:4)
2020-12-10T08:39:32.6374830Z at Test.main(BootstrapChecker.scala)
2020-12-10T08:39:32.6375857Z ... 6 more
2020-12-10T08:39:32.6376312Z