Skip to content

Enable ticky ticky

David Himmelstrup requested to merge lemmih/ghc:enable-ticky-ticky into master

Hadrian compiles cmm files with -DTICKY_TICKY but should also use -optc-DTICKY_TICKY. This meant TICKY_TICKY was always disabled in large parts of the RTS and many counters would be incorrect (or zero, even).

Compiling with -optc-DTICKY_TICKY showed that a single counter, TICK_ENT_DYN_THK, had stopped working. The code that calls that macro should be updated to use either TICK_ENT_DYN_THK_SINGLE or TICK_ENT_DYN_THK_MANY. I don't know what the counter is counting so I just disabled it.

I wish I knew how to write a test case for this.

Merge request reports