aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process_dict.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-09 19:28:15 +0100
committerSverker Eriksson <[email protected]>2015-12-09 20:18:18 +0100
commitbb5f71a7573158056dd9c80228c95833f970ec0b (patch)
tree6ff2459c8e64c771933e1fb66b28eb406864b4d4 /erts/emulator/beam/erl_process_dict.h
parenteb2e118ee2be5c008fc4417a443c351807adf123 (diff)
downloadotp-bb5f71a7573158056dd9c80228c95833f970ec0b.tar.gz
otp-bb5f71a7573158056dd9c80228c95833f970ec0b.tar.bz2
otp-bb5f71a7573158056dd9c80228c95833f970ec0b.zip
erts: Add proc dict macros ERTS_PD_START/SIZE
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.h')
-rw-r--r--erts/emulator/beam/erl_process_dict.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process_dict.h b/erts/emulator/beam/erl_process_dict.h
index ab50d45c63..3ad070d914 100644
--- a/erts/emulator/beam/erl_process_dict.h
+++ b/erts/emulator/beam/erl_process_dict.h
@@ -31,6 +31,9 @@ typedef struct proc_dict {
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)->used)
+
int erts_pd_set_initial_size(int size);
Uint erts_dicts_mem_size(struct process *p);
void erts_erase_dicts(struct process *p);