Rename some mutable closure types for consistency
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Tue, 5 Jun 2018 14:00:22 +0000 (17:00 +0300)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>
Tue, 5 Jun 2018 14:00:34 +0000 (17:00 +0300)
commit4075656e8bb2338d9857acfa54f8b9c5e0661f44
treee2aed739e695ff3d12d5f071ff8214c38a07abae
parent8ed8b037fee9611b1c4ef49adb6cf50bbd929a27
Rename some mutable closure types for consistency

SMALL_MUT_ARR_PTRS_FROZEN0 -> SMALL_MUT_ARR_PTRS_FROZEN_DIRTY
SMALL_MUT_ARR_PTRS_FROZEN  -> SMALL_MUT_ARR_PTRS_FROZEN_CLEAN
MUT_ARR_PTRS_FROZEN0       -> MUT_ARR_PTRS_FROZEN_DIRTY
MUT_ARR_PTRS_FROZEN        -> MUT_ARR_PTRS_FROZEN_CLEAN

Naming is now consistent with other CLEAR/DIRTY objects (MVAR, MUT_VAR,
MUT_ARR_PTRS).

(alternatively we could rename MVAR_DIRTY/MVAR_CLEAN etc. to MVAR0/MVAR)

Removed a few comments in Scav.c about FROZEN0 being on the mut_list
because it's now clear from the closure type.

Reviewers: bgamari, simonmar, erikd

Reviewed By: simonmar

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4784
24 files changed:
compiler/cmm/CLabel.hs
compiler/codeGen/StgCmmPrim.hs
includes/rts/storage/ClosureMacros.h
includes/rts/storage/ClosureTypes.h
includes/stg/MiscClosures.h
libraries/ghc-heap/GHC/Exts/Heap.hs
libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs
rts/CheckUnload.c
rts/ClosureFlags.c
rts/Compact.cmm
rts/Heap.c
rts/LdvProfile.c
rts/PrimOps.cmm
rts/Printer.c
rts/ProfHeap.c
rts/RetainerProfile.c
rts/RtsSymbols.c
rts/StgMiscClosures.cmm
rts/Weak.c
rts/sm/CNF.c
rts/sm/Compact.c
rts/sm/Evac.c
rts/sm/Sanity.c
rts/sm/Scav.c