diff options
author | Sverker Eriksson <[email protected]> | 2014-12-02 17:37:13 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-12-02 17:37:13 +0100 |
commit | b3e52c026ce4920e1a4e36ef98e5de94666e91ef (patch) | |
tree | acd32450496744ade5043d8b56cb32b5f3dae1c2 /erts/emulator/beam/erl_process.c | |
parent | c0067390b80f015a0342284505543d099b9e20e6 (diff) | |
download | otp-b3e52c026ce4920e1a4e36ef98e5de94666e91ef.tar.gz otp-b3e52c026ce4920e1a4e36ef98e5de94666e91ef.tar.bz2 otp-b3e52c026ce4920e1a4e36ef98e5de94666e91ef.zip |
erts: Add compile time assert ERTS_CT_ASSERT
and usage
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index b0e0cf13f8..08c03e7135 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -2366,7 +2366,6 @@ erts_active_schedulers(void) ERTS_ATOMIC_FOREACH_RUNQ(rq, as -= abs(rq->waiting)); - ASSERT(as >= 0); return as; } @@ -10484,7 +10483,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, |