Fix a bug in the handling of recent_activity
authorSimon Marlow <marlowsd@gmail.com>
Tue, 7 Aug 2012 13:44:46 +0000 (14:44 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 7 Aug 2012 14:50:39 +0000 (15:50 +0100)
commit396f09031b363bf2f0d2afa28a86e67a0628a696
tree23cf23e48daad91181b68e527bba7212b8c74605
parent69cda9ef2a54753ee43dda0c3d0ecec21bde8b85
Fix a bug in the handling of recent_activity

The problem occurred when the idle GC was turned off with +RTS -I0.
Then the scheduler would go into the state ACTIVITY_DONE_GC directly
without doing a GC, and a subsequent GC would put it back to
ACTIVITY_YES but without turning the timer back on.  Instead if the GC
finds the state is ACTIVITY_DONE_GC it should leave it there.
rts/Schedule.c