diff options
author | Sverker Eriksson <[email protected]> | 2017-01-05 20:06:04 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-01-05 20:06:04 +0100 |
commit | 5f4d538b2abfd1ab3f495879996edaa004309623 (patch) | |
tree | e26d214f8eec28f0b4e2462b8ffded6962ed1726 /erts/emulator/beam/erl_gc.c | |
parent | 3473ecd83a7bbe7e0bebb865f25dddb93e3bf10f (diff) | |
download | otp-5f4d538b2abfd1ab3f495879996edaa004309623.tar.gz otp-5f4d538b2abfd1ab3f495879996edaa004309623.tar.bz2 otp-5f4d538b2abfd1ab3f495879996edaa004309623.zip |
erts: Assert sufficient space need after GC
Diffstat (limited to 'erts/emulator/beam/erl_gc.c')
-rw-r--r-- | erts/emulator/beam/erl_gc.c | 1 |
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; } |