If ACTIVITY_INACTIVE is set, wait for GC before resetting it
authorSimon Marlow <marlowsd@gmail.com>
Sun, 13 Dec 2009 20:12:46 +0000 (20:12 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Sun, 13 Dec 2009 20:12:46 +0000 (20:12 +0000)
commit5308c0423b613e0d6a22996e2052731f0a371475
treefe3b8001bcdddde04a5efcf391bb1f26dc4b046e
parent5734b876e3ac2faea7d59457956051cc32af191d
If ACTIVITY_INACTIVE is set, wait for GC before resetting it
I don't think this fixes any real bugs, but there's a small
possibility that when the RTS is woken up for an idle-time GC, the IO
manager thread might be pre-empted which would prevent the idle GC
from happening; this change ensures that the idle GC happens anyway.
rts/Schedule.c