diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-12-01 18:02:54 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-12-07 16:27:52 +0100 |
commit | f67a7375e19734c3f7d6947b0dcf608d0fe1c8fa (patch) | |
tree | 5f6dd05d4558e040e636f7417ecf35c636379e74 /erts/emulator/beam/erl_process_dict.c | |
parent | a2c538dee3013bb6285027d9ae45b7f055e8e8eb (diff) | |
download | otp-f67a7375e19734c3f7d6947b0dcf608d0fe1c8fa.tar.gz otp-f67a7375e19734c3f7d6947b0dcf608d0fe1c8fa.tar.bz2 otp-f67a7375e19734c3f7d6947b0dcf608d0fe1c8fa.zip |
erts: Use internal hash for process dictionaries
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.c')
-rw-r--r-- | erts/emulator/beam/erl_process_dict.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/beam/erl_process_dict.c b/erts/emulator/beam/erl_process_dict.c index 8606371bdf..81469e8716 100644 --- a/erts/emulator/beam/erl_process_dict.c +++ b/erts/emulator/beam/erl_process_dict.c @@ -53,11 +53,11 @@ /* Hash utility macros */ #define HASH_RANGE(PDict) ((PDict)->homeSize + (PDict)->splitPosition) -#define MAKE_HASH(Term) \ -((is_small(Term)) ? unsigned_val(Term) : \ - ((is_atom(Term)) ? \ - (atom_tab(atom_val(term))->slot.bucket.hvalue) : \ - make_hash2(Term))) +#define MAKE_HASH(Term) \ + ((is_small(Term)) ? unsigned_val(Term) : \ + ((is_atom(Term)) ? \ + (atom_tab(atom_val(Term))->slot.bucket.hvalue) : \ + make_internal_hash(Term))) #define PD_SZ2BYTES(Sz) (sizeof(ProcDict) + ((Sz) - 1)*sizeof(Eterm)) |