projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
773d8c8
)
[project @ 2003-01-27 23:23:30 by wolfgang]
author
wolfgang
<unknown>
Mon, 27 Jan 2003 23:23:30 +0000
(23:23 +0000)
committer
wolfgang
<unknown>
Mon, 27 Jan 2003 23:23:30 +0000
(23:23 +0000)
Add #ifdef around an assertion that only holds for the threaded RTS.
ghc/rts/Capability.c
patch
|
blob
|
history
diff --git
a/ghc/rts/Capability.c
b/ghc/rts/Capability.c
index
ee25f27
..
d96b724
100644
(file)
--- a/
ghc/rts/Capability.c
+++ b/
ghc/rts/Capability.c
@@
-137,7
+137,9
@@
static Capability *returning_capabilities;
*/
void grabCapability(Capability** cap)
{
+#ifdef RTS_SUPPORTS_THREADS
ASSERT(rts_n_free_capabilities > 0);
+#endif
#if !defined(SMP)
rts_n_free_capabilities = 0;
*cap = &MainCapability;