diff options
author | Sverker Eriksson <[email protected]> | 2015-12-09 19:28:15 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-12-09 20:18:18 +0100 |
commit | bb5f71a7573158056dd9c80228c95833f970ec0b (patch) | |
tree | 6ff2459c8e64c771933e1fb66b28eb406864b4d4 /erts/emulator/beam/erl_gc.c | |
parent | eb2e118ee2be5c008fc4417a443c351807adf123 (diff) | |
download | otp-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_gc.c')
-rw-r--r-- | erts/emulator/beam/erl_gc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c index d2604f1595..b743b7e8f6 100644 --- a/erts/emulator/beam/erl_gc.c +++ b/erts/emulator/beam/erl_gc.c @@ -1953,7 +1953,7 @@ collect_heap_frags(Process* p, Eterm* n_hstart, Eterm* n_htop, #ifdef HARDDEBUG disallow_heap_frag_ref(p, n_htop, p->stop, STACK_START(p) - p->stop); if (p->dictionary != NULL) { - disallow_heap_frag_ref(p, n_htop, p->dictionary->data, p->dictionary->used); + disallow_heap_frag_ref(p, n_htop, ERTS_PD_START(p->dictionary), ERTS_PD_SIZE(p->dictionary)); } disallow_heap_frag_ref_in_heap(p); #endif @@ -1993,8 +1993,8 @@ setup_rootset(Process *p, Eterm *objv, int nobj, Rootset *rootset) ++n; if (p->dictionary != NULL) { - roots[n].v = p->dictionary->data; - roots[n].sz = p->dictionary->used; + roots[n].v = ERTS_PD_START(p->dictionary); + roots[n].sz = ERTS_PD_SIZE(p->dictionary); ++n; } if (nobj > 0) { @@ -2589,8 +2589,8 @@ offset_one_rootset(Process *p, Sint offs, char* area, Uint area_size, Eterm* objv, int nobj) { if (p->dictionary) { - offset_heap(p->dictionary->data, - p->dictionary->used, + offset_heap(ERTS_PD_START(p->dictionary), + ERTS_PD_SIZE(p->dictionary), offs, area, area_size); } |