aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process_dict.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-09 19:34:45 +0100
committerSverker Eriksson <[email protected]>2015-12-09 20:18:18 +0100
commit4179ca9f10cdc78e882ce4496cf0a1261a0129af (patch)
tree99ec62b4ac16ab884cf2afaf0e78f06ed820a82f /erts/emulator/beam/erl_process_dict.h
parentbb5f71a7573158056dd9c80228c95833f970ec0b (diff)
downloadotp-4179ca9f10cdc78e882ce4496cf0a1261a0129af.tar.gz
otp-4179ca9f10cdc78e882ce4496cf0a1261a0129af.tar.bz2
otp-4179ca9f10cdc78e882ce4496cf0a1261a0129af.zip
erts: Remove ProcDict.used
(homeSize + splitPosition) will do just fine
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.h')
-rw-r--r--erts/emulator/beam/erl_process_dict.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process_dict.h b/erts/emulator/beam/erl_process_dict.h
index 3ad070d914..eb26a1ffcc 100644
--- a/erts/emulator/beam/erl_process_dict.h
+++ b/erts/emulator/beam/erl_process_dict.h
@@ -24,7 +24,6 @@
typedef struct proc_dict {
unsigned int size;
- unsigned int used;
unsigned int homeSize;
unsigned int splitPosition;
Uint numElements;
@@ -32,7 +31,7 @@ typedef struct proc_dict {
} ProcDict;
#define ERTS_PD_START(PD) ((PD)->data)
-#define ERTS_PD_SIZE(PD) ((PD)->used)
+#define ERTS_PD_SIZE(PD) ((PD)->homeSize + (PD)->splitPosition)
int erts_pd_set_initial_size(int size);
Uint erts_dicts_mem_size(struct process *p);