diff options
author | Sverker Eriksson <[email protected]> | 2015-03-10 18:07:11 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:15:33 +0100 |
commit | 7478569d0a7d619d600816f3a75e56922d8ed428 (patch) | |
tree | 7c2a3783fd87c3b720464f748cf57a25d07ade6d /erts/emulator/beam/erl_utils.h | |
parent | 01e843722aa39b3411d349c6fbea80ad87a6e9ef (diff) | |
download | otp-7478569d0a7d619d600816f3a75e56922d8ed428.tar.gz otp-7478569d0a7d619d600816f3a75e56922d8ed428.tar.bz2 otp-7478569d0a7d619d600816f3a75e56922d8ed428.zip |
erts: Tweak over estimation of hashmap size for binary_to_term
Strategy: Calculate an over estimation of heap size that will give
such a low probability for overflow, that "it will not happen".
Scary assumption 1: Uniformly distributed hash values.
Scary assumption 2: Tree size is normally distributed (right?)
Diffstat (limited to 'erts/emulator/beam/erl_utils.h')
-rw-r--r-- | erts/emulator/beam/erl_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_utils.h b/erts/emulator/beam/erl_utils.h index c772a750f1..7cb8972e29 100644 --- a/erts/emulator/beam/erl_utils.h +++ b/erts/emulator/beam/erl_utils.h @@ -113,6 +113,7 @@ void erts_silence_warn_unused_result(long unused); int erts_fit_in_bits_int64(Sint64); int erts_fit_in_bits_int32(Sint32); +int erts_fit_in_bits_uint(Uint); int erts_list_length(Eterm); int erts_is_builtin(Eterm, Eterm, int); Uint32 make_broken_hash(Eterm); |