aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_gc.h
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-11-24 12:50:25 +0100
committerBjörn Gustavsson <[email protected]>2017-11-24 15:47:32 +0100
commit3105c314beff5c9b226d8e863d32c4329706353c (patch)
tree9890c65469b078a47b7cd8a415badc93494fd89c /erts/emulator/beam/erl_gc.h
parentc17978f689ca8f9dd36f76fa8fcf448664921301 (diff)
downloadotp-3105c314beff5c9b226d8e863d32c4329706353c.tar.gz
otp-3105c314beff5c9b226d8e863d32c4329706353c.tar.bz2
otp-3105c314beff5c9b226d8e863d32c4329706353c.zip
Fix purging of modules with "fake literals"
When compiling Erlang source code, the literal area for the module can only contain data types that have a literal syntax. However, it is possible to sneak in other data types (such as references) in the literal pool by compiling from abstract or assembly code. Those "fake literals" would work fine, but would crash the runtime system when the module containing the literals was purged. Although fake literals are not officially supported, the runtime should not crash when attempting to use them. Therefore, fix the garbage collection of literals and releasing of literal areas. https://bugs.erlang.org/browse/ERL-508
Diffstat (limited to 'erts/emulator/beam/erl_gc.h')
0 files changed, 0 insertions, 0 deletions