diff options
author | Björn Gustavsson <[email protected]> | 2015-03-23 13:10:20 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-13 12:37:54 +0200 |
commit | 529af720ae7b663aa6a1a086b31ba9e3605ff21e (patch) | |
tree | b395c9b16b2e07c00c3d98b163997ddc12db7a18 /system | |
parent | c92cf260bb888c004fb02651670d19989dbc2b74 (diff) | |
download | otp-529af720ae7b663aa6a1a086b31ba9e3605ff21e.tar.gz otp-529af720ae7b663aa6a1a086b31ba9e3605ff21e.tar.bz2 otp-529af720ae7b663aa6a1a086b31ba9e3605ff21e.zip |
Sort maps keys in the loader
The map instructions require that the keys in the instructions
are sorted (for flatmaps). But that is an implementation detail
that should not exposed outside of the BEAM virtual machine.
Therefore, make the sorting of the keys the responsibility of
the loader and not the compiler.
Also note that the sort order for maps with numeric keys or keys
with numeric components has changed in OTP 18. That means that
code compiled for OTP 17 that operated on maps with map keys
might not work in OTP 18 without the sorting in the loader
(although it is unlikely to be an issue in practice).
Diffstat (limited to 'system')
0 files changed, 0 insertions, 0 deletions