aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-02-20 11:14:42 +0100
committerSverker Eriksson <[email protected]>2014-02-20 14:20:46 +0100
commit880239f529bbdefecc39cc179a24d9ea89c3736a (patch)
treeefcac278ea6696601e7c5eb131cd2461f7eb4cb4 /erts/emulator
parent6c9002f9174d40b69b3a5bcd5ef219ce4ceb3622 (diff)
downloadotp-880239f529bbdefecc39cc179a24d9ea89c3736a.tar.gz
otp-880239f529bbdefecc39cc179a24d9ea89c3736a.tar.bz2
otp-880239f529bbdefecc39cc179a24d9ea89c3736a.zip
ASSERT that GC is not tried with "need" when GC is disabled
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_gc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c
index 2022f70cbb..aa15d2cc57 100644
--- a/erts/emulator/beam/erl_gc.c
+++ b/erts/emulator/beam/erl_gc.c
@@ -406,8 +406,10 @@ erts_garbage_collect(Process* p, int need, Eterm* objv, int nobj)
DTRACE_CHARBUF(pidbuf, DTRACE_TERM_BUF_SIZE);
#endif
- if (p->flags & F_DISABLE_GC)
+ if (p->flags & F_DISABLE_GC) {
+ ASSERT(need == 0);
return 1;
+ }
esdp = erts_get_scheduler_data();