Opened 5 years ago

Closed 5 years ago

#7127 closed bug (fixed)

RTS timer gets turned off when using +RTS -I0

Reported by: simonmar Owned by: simonmar
Priority: high Milestone: 7.6.1
Component: Runtime System Version: 7.4.2
Keywords: Cc: hvr@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


This bug was reported to me by hvr on IRC. I fixed it in GHC yesterday, but we still need a test, and we could potentially merge this to the 7.4 and 7.6 branches:

commit 396f09031b363bf2f0d2afa28a86e67a0628a696

Author: Simon Marlow <>
Date:   Tue Aug 7 14:44:46 2012 +0100

    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.

Change History (3)

comment:1 Changed 5 years ago by simonmar

Status: newmerge

comment:2 Changed 5 years ago by hvr

Cc: hvr@… added

comment:3 Changed 5 years ago by pcapriotti

Resolution: fixed
Status: mergeclosed
Note: See TracTickets for help on using tickets.