diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2020-04-18 07:03:05 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-29 13:12:47 -0400 |
commit | 296ed7395c9a45352cf2e03ef9ff0b3b1f5a1a80 (patch) | |
tree | 3e8e88cb824add473bca6c9f56bcccd5c305eddf /rts/Schedule.c | |
parent | de2629304aa2df1783f099e1da2cd04ce0423790 (diff) | |
download | haskell-296ed7395c9a45352cf2e03ef9ff0b3b1f5a1a80.tar.gz |
rts: Allow building with ASSERTs on in non-DEBUG way
We have a couple of places where the conditions in asserts depend on code
ifdefed out when DEBUG is off. I'd like to allow compiling assertions into
non-DEBUG RTSen so that won't do.
Currently if we remove the conditional around the definition of ASSERT()
the build will not actually work due to a deadlock caused by initMutex not
initializing mutexes with PTHREAD_MUTEX_ERRORCHECK because DEBUG is off.
Diffstat (limited to 'rts/Schedule.c')
-rw-r--r-- | rts/Schedule.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c index c5a5041587..85d66ab030 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -1736,9 +1736,7 @@ scheduleDoGC (Capability **pcap, Task *task USED_IF_THREADS, stat_startGCSync(gc_threads[cap->no]); -#if defined(DEBUG) unsigned int old_n_capabilities = n_capabilities; -#endif interruptAllCapabilities(); |