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:
e9b4997
)
fix a warning
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 8 Jun 2006 14:19:03 +0000
(14:19 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 8 Jun 2006 14:19:03 +0000
(14:19 +0000)
rts/STM.c
patch
|
blob
|
history
diff --git
a/rts/STM.c
b/rts/STM.c
index
96db3f6
..
fa6e9da
100644
(file)
--- a/
rts/STM.c
+++ b/
rts/STM.c
@@
-795,9
+795,9
@@
void stmPreGCHook() {
static volatile StgInt64 max_commits = 0;
+#if defined(THREADED_RTS)
static volatile StgBool token_locked = FALSE;
-#if defined(THREADED_RTS)
static void getTokenBatch(Capability *cap) {
while (cas((void *)&token_locked, FALSE, TRUE) == TRUE) { /* nothing */ }
max_commits += TOKEN_BATCH_SIZE;