diff options
author | Sverker Eriksson <[email protected]> | 2015-12-10 16:21:59 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-12-15 12:08:02 +0100 |
commit | 5801defc866e34c6effd49b9dec995b5dac164f3 (patch) | |
tree | 5b511fb509dd46c44dd5a09ccd3c233eea49cacf /erts/emulator/beam/erl_process_dict.h | |
parent | 4804ea2aa50af490ab3998466269efa540abd90d (diff) | |
download | otp-5801defc866e34c6effd49b9dec995b5dac164f3.tar.gz otp-5801defc866e34c6effd49b9dec995b5dac164f3.tar.bz2 otp-5801defc866e34c6effd49b9dec995b5dac164f3.zip |
erts: Refactor proc dict with 'usedSlots'
which is same as old homeSize + splitPosition.
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.h')
-rw-r--r-- | erts/emulator/beam/erl_process_dict.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process_dict.h b/erts/emulator/beam/erl_process_dict.h index fd59c969cf..f0d57da1e6 100644 --- a/erts/emulator/beam/erl_process_dict.h +++ b/erts/emulator/beam/erl_process_dict.h @@ -25,14 +25,14 @@ typedef struct proc_dict { unsigned int sizeMask; unsigned int size; - unsigned int homeSize; + unsigned int usedSlots; unsigned int splitPosition; Uint numElements; Eterm data[1]; /* The beginning of an array of erlang terms */ } ProcDict; #define ERTS_PD_START(PD) ((PD)->data) -#define ERTS_PD_SIZE(PD) ((PD)->homeSize + (PD)->splitPosition) +#define ERTS_PD_SIZE(PD) ((PD)->usedSlots) int erts_pd_set_initial_size(int size); Uint erts_dicts_mem_size(struct process *p); |