X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FCapability.c;h=99c68fd3b8ea447a5f52732b7d8ff51406282c73;hb=9cbee1b3381d4eac1f54e9f0b4c333e6ead3a4cf;hp=7fc1c577c4a170e2bf6ca6f774e0e55c25be574e;hpb=ac548e9fd9014cc372dcab31eb4c0392ee80ed4e;p=ghc-hetmet.git diff --git a/rts/Capability.c b/rts/Capability.c index 7fc1c57..99c68fd 100644 --- a/rts/Capability.c +++ b/rts/Capability.c @@ -678,8 +678,10 @@ shutdownCapability (Capability *cap, Task *task) // we now have the Capability, its run queue and spare workers // list are both empty. - // We end up here only in THREADED_RTS - closeMutex(&cap->lock); + // ToDo: we can't drop this mutex, because there might still be + // threads performing foreign calls that will eventually try to + // return via resumeThread() and attempt to grab cap->lock. + // closeMutex(&cap->lock); } /* ----------------------------------------------------------------------------