summaryrefslogtreecommitdiff
path: root/rts/sm/GC.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-03-09 14:00:04 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-03-09 14:00:04 +0000
commit73e88c2a30cbb2fc9cf8c394c620c0f3edcdd0eb (patch)
tree8c2b130170d74bee398d7e97f483842fbea876f7 /rts/sm/GC.h
parent9fe7b8ea2136a4a07752b2851840c9366706f832 (diff)
downloadhaskell-73e88c2a30cbb2fc9cf8c394c620c0f3edcdd0eb.tar.gz
Fix a bug which sometimes caused extra major GCs to be performed
A long-running GC would cause the timer signal to declare the system to be idle, which would cause a major GC immediately following the current GC. This only happened with +RTS -N2 or greater.
Diffstat (limited to 'rts/sm/GC.h')
-rw-r--r--rts/sm/GC.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/sm/GC.h b/rts/sm/GC.h
index 5fb142f58f..366125d159 100644
--- a/rts/sm/GC.h
+++ b/rts/sm/GC.h
@@ -43,6 +43,7 @@ extern StgWord64 whitehole_spin;
void gcWorkerThread (Capability *cap);
void initGcThreads (void);
void waitForGcThreads (Capability *cap);
+void releaseGCThreads (Capability *cap);
#define WORK_UNIT_WORDS 128