aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-01-05 20:06:04 +0100
committerSverker Eriksson <[email protected]>2017-01-05 20:06:04 +0100
commit5f4d538b2abfd1ab3f495879996edaa004309623 (patch)
treee26d214f8eec28f0b4e2462b8ffded6962ed1726 /erts/emulator
parent3473ecd83a7bbe7e0bebb865f25dddb93e3bf10f (diff)
downloadotp-5f4d538b2abfd1ab3f495879996edaa004309623.tar.gz
otp-5f4d538b2abfd1ab3f495879996edaa004309623.tar.bz2
otp-5f4d538b2abfd1ab3f495879996edaa004309623.zip
erts: Assert sufficient space need after GC
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c
index af799d09da..50f09277fa 100644
--- a/erts/emulator/beam/erl_gc.c
+++ b/erts/emulator/beam/erl_gc.c
@@ -765,6 +765,7 @@ do_major_collection:
ASSERT(!p->mbuf);
ASSERT(!ERTS_IS_GC_DESIRED(p));
+ ASSERT(need <= HEAP_LIMIT(p) - HEAP_TOP(p));
return reds;
}