aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-12-16 15:22:07 +0100
committerSverker Eriksson <[email protected]>2014-12-16 15:22:07 +0100
commitc4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c (patch)
treee11aab77ae5383ae16f99cff9003208f32ceb15f /erts/emulator/beam/erl_process.c
parentbe779dbb921e2f99d1d6f626d32e34053a0635d9 (diff)
parentb3e52c026ce4920e1a4e36ef98e5de94666e91ef (diff)
downloadotp-c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c.tar.gz
otp-c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c.tar.bz2
otp-c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c.zip
Merge branch 'sverk/ct-assert'
* sverk/ct-assert: erts: Add compile time assert ERTS_CT_ASSERT
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index b0276fbae0..07daabefc7 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -2318,7 +2318,6 @@ erts_active_schedulers(void)
ERTS_ATOMIC_FOREACH_RUNQ(rq, as -= abs(rq->waiting));
- ASSERT(as >= 0);
return as;
}
@@ -10436,7 +10435,7 @@ alloc_process(ErtsRunQueue *rq, erts_aint32_t state)
init_arg.run_queue = rq;
init_arg.state = state;
- ASSERT(((char *) p) == ((char *) &p->common));
+ ERTS_CT_ASSERT(offsetof(Process,common) == 0);
if (!erts_ptab_new_element(&erts_proc,
&p->common,