Commit 9c1b774a authored by simonmar's avatar simonmar
Browse files

[project @ 2005-06-28 13:44:28 by simonmar]

Add a comment that grabbing all the capabilities before GC causes the
thread->capability hash table to acquire multiple entries for the
current thread, which seems to be harmless.
parent 9e9dfae0
......@@ -1906,6 +1906,11 @@ scheduleDoGC( rtsBool force_major )
// actually did the GC. But it's quite hard to arrange for all
// the other tasks to sleep and stay asleep.
//
// This does mean that there will be multiple entries in the
// thread->capability hash table for the current thread, but
// they will be removed as normal when the capabilities are
// released again.
//
// Someone else is already trying to GC
if (waiting_for_gc) return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment