diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-01-07 18:40:43 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-01-07 18:40:43 +0100 |
commit | 71e6fe5bcbd7b2b98dfa159db34ee1fe14823a56 (patch) | |
tree | 671f156892b7d2c36a005e90796267738630b1d9 /erts/Makefile.in | |
parent | 006df089ffd6c024a4f5099d27ebcda5a684f0ef (diff) | |
download | otp-71e6fe5bcbd7b2b98dfa159db34ee1fe14823a56.tar.gz otp-71e6fe5bcbd7b2b98dfa159db34ee1fe14823a56.tar.bz2 otp-71e6fe5bcbd7b2b98dfa159db34ee1fe14823a56.zip |
erts: Fix bs_get_integer instruction
The instruction bs_get_integer could unnecessarily trigger a garbage collection
in failure cases which is unwanted or outright dangerous.
Ex:
<<X:Sz,_/bits>> = <<"some binary">>
Previously, if Sz induced X to a bignum it would reserved memory size this on
the heap via a garbage collection before checking if the size could actually match.
It will now check the binary size before triggering a collection.
Diffstat (limited to 'erts/Makefile.in')
0 files changed, 0 insertions, 0 deletions