aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_gc.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-06-15 14:28:34 +0200
committerSverker Eriksson <[email protected]>2015-06-15 14:28:34 +0200
commit0aa4393922d7f69aa4fb7a7dd30ad8dba1076c63 (patch)
tree5055b6e83a3ee509316459d0f1b195605c784ffa /erts/emulator/beam/erl_gc.c
parentb130093994e7bfe45c92579af3068558e45a6c30 (diff)
parentf7ef9fb1679fcd46c48ec5f8a968f7e053b3d4ed (diff)
downloadotp-0aa4393922d7f69aa4fb7a7dd30ad8dba1076c63.tar.gz
otp-0aa4393922d7f69aa4fb7a7dd30ad8dba1076c63.tar.bz2
otp-0aa4393922d7f69aa4fb7a7dd30ad8dba1076c63.zip
Merge branch 'sverk/map-merge-trap'
* sverk/map-merge-trap: erts: Optimize maps:merge erts: Yield in maps:merge erts: Refactor arg swapping for maps:merge erts: Add save/restore for PSTACK erts: Fix magic binary alignment on 32-bit erts: Add maps to send_term_SUITE erts: Fix calculation of reclaimed data during full gc erts: Fix warning about const pointer to make_boxed and make_list erts: Fix typo in etp-carrier-blocks
Diffstat (limited to 'erts/emulator/beam/erl_gc.c')
-rw-r--r--erts/emulator/beam/erl_gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c
index 5a3fa33da8..99481e261f 100644
--- a/erts/emulator/beam/erl_gc.c
+++ b/erts/emulator/beam/erl_gc.c
@@ -1227,7 +1227,8 @@ major_collection(Process* p, int need, Eterm* objv, int nobj, Uint *recl)
Uint new_sz;
Uint fragments = MBUF_SIZE(p) + combined_message_size(p);
- size_before = fragments + (HEAP_TOP(p) - HEAP_START(p));
+ size_before = fragments + (HEAP_TOP(p) - HEAP_START(p))
+ + (OLD_HTOP(p) - OLD_HEAP(p));
/*
* Do a fullsweep GC. First figure out the size of the heap