diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2021-02-15 04:07:23 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-29 13:12:47 -0400 |
commit | e6731578246b6e6959026d4a9da9971b097c83aa (patch) | |
tree | b187c46fc1d10b17a1f7d2a5952582269921b73a /rts/sm/GC.c | |
parent | 296ed7395c9a45352cf2e03ef9ff0b3b1f5a1a80 (diff) | |
download | haskell-e6731578246b6e6959026d4a9da9971b097c83aa.tar.gz |
Add configure flag to enable ASSERTs in all ways
Running the test suite with asserts enabled is somewhat tricky at the
moment as running it with a GHC compiled the DEBUG way has some hundred
failures from the start. These seem to be unrelated to assertions
though. So this provides a toggle to make it easier to debug failing
assertions using the test suite.
Diffstat (limited to 'rts/sm/GC.c')
-rw-r--r-- | rts/sm/GC.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/GC.c b/rts/sm/GC.c index 1a71bd7bf0..21b7b17f0d 100644 --- a/rts/sm/GC.c +++ b/rts/sm/GC.c @@ -1545,8 +1545,8 @@ releaseGCThreads (Capability *cap USED_IF_THREADS, bool idle_cap[]) const uint32_t n_threads = n_capabilities; const uint32_t me = cap->no; uint32_t i; -#if defined(DEBUG) uint32_t num_idle = 0; +#if defined(ASSERTS_ENABLED) for(i=0; i < n_threads; ++i) { ASSERT(!(i==me && idle_cap[i])); if (idle_cap[i]) { ++num_idle;} |