diff options
author | Björn Gustavsson <[email protected]> | 2019-06-04 12:51:54 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-06-14 12:58:22 +0200 |
commit | 5943ff2cfb38f7ad572bb76abf425dd128dab72d (patch) | |
tree | e1757860cca984cf8e2f93992e88a36efaeedb73 /lib/compiler | |
parent | 0ddddac7691521f76d984140ec5d82db5ab1e3ea (diff) | |
download | otp-5943ff2cfb38f7ad572bb76abf425dd128dab72d.tar.gz otp-5943ff2cfb38f7ad572bb76abf425dd128dab72d.tar.bz2 otp-5943ff2cfb38f7ad572bb76abf425dd128dab72d.zip |
Support sharing of fun entries in the runtime system
Before OTP 23, there had to be a one-to-one correspodence between
`make_fun2` instructions and fun entries.
In the OTP 23 runtime system, start keying the fun entries with the
explicit ("new") index included in the fun entry. That will allow
multiple `make_fun2` instructions to refer to the same entry in
the fun table.
This change is safe for code compiled by OTP R15B or later, because
the old and new indices are identical. The loader will refuse to
load code where the old and new indices are not equal unless the
code is known to be compiled with an OTP 23 compiler.
Diffstat (limited to 'lib/compiler')
0 files changed, 0 insertions, 0 deletions