-
Notifications
You must be signed in to change notification settings - Fork 1.1k
tests/pos/Map.scala
does not produce idempotent bytecode
#2274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same issue is also present compiling |
scalac has some infrastructure to dump bytecode with sorted members using ASM: https://github.com/scala/scala/blob/2.12.x/src/compiler/scala/tools/nsc/backend/jvm/AsmUtils.scala#L95 It's used to make better bytecode diffs. |
If I understand correctly, that tool would hide the issue that I'm trying to show. |
Yes, but since the order of members in the bytecode doesn't matter for anything, I think that's fine. |
I would try to make this order idempotent as it is the only thing that has shown |
This can only be reproduced when recompiling classes that already exist in the standard library while also loading symbols from the scala2 compiled version. |
This is just an artifact of the test framework loading classes compiled by scala2. It will disappear when we bootstrap. |
After compiling this file twice in
#2272
the two bytecodes differed in the order of some bridges.Printing the contents of the
Map.class
s withjavap -c -v -p -s
showed the following diff:The same issue is present in the
AbstractMap.class
s.The text was updated successfully, but these errors were encountered: