[rts] Adjust whitehole_spin
authorDouglas Wilson <douglas.wilson@gmail.com>
Sun, 21 Jan 2018 17:08:19 +0000 (12:08 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 21 Jan 2018 17:08:20 +0000 (12:08 -0500)
commit180ca65ff6d1b4f3f4cdadc569fd4de107be14db
tree4bb39d6e1123897d0988674a25788c8d3bcab691
parent5edb18a962cbfee0ff869b1a77ebf2cd79dd8ef5
[rts] Adjust whitehole_spin

Rename to whitehole_gc_spin, in preparation for adding stats for the
whitehole busy-loop in SMPClosureOps.

Make whitehole_gc_spin volatile, and move it to be defined and
statically initialised in GC.c. This saves some #ifs, and I'm pretty
sure it should be volatile.

Test Plan: ./validate

Reviewers: bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4300
rts/Stats.c
rts/sm/Evac.c
rts/sm/GC.c
rts/sm/GC.h
rts/sm/Storage.c