Split GC.c, and move storage manager into sm/ directory
authorSimon Marlow <simonmar@microsoft.com>
Tue, 24 Oct 2006 09:13:57 +0000 (09:13 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 24 Oct 2006 09:13:57 +0000 (09:13 +0000)
commitab0e778ccfde61aed4c22679b24d175fc6cc9bf3
treea0f6148a77644c5a7baa68b521bf3b1116dce50b
parent2246c514eade324d70058ba3135dc0c51ee9353b
Split GC.c, and move storage manager into sm/ directory
In preparation for parallel GC, split up the monolithic GC.c file into
smaller parts.  Also in this patch (and difficult to separate,
unfortunatley):

  - Don't include Stable.h in Rts.h, instead just include it where
    necessary.

  - consistently use STATIC_INLINE in source files, and INLINE_HEADER
    in header files.  STATIC_INLINE is now turned off when DEBUG is on,
    to make debugging easier.

  - The GC no longer takes the get_roots function as an argument.
    We weren't making use of this generalisation.
55 files changed:
includes/Rts.h
includes/RtsExternal.h
includes/Stg.h
includes/Storage.h
includes/mkDerivedConstants.c
rts/Adjustor.c
rts/Arena.c
rts/Capability.c
rts/Disassembler.c
rts/GC.c [deleted file]
rts/HCIncludes.h
rts/HsFFI.c
rts/Interpreter.c
rts/Linker.c
rts/Main.c
rts/Makefile
rts/RaiseAsync.c
rts/RaiseAsync.h
rts/RetainerProfile.c
rts/RtsAPI.c
rts/RtsFlags.c
rts/RtsStartup.c
rts/STM.c
rts/Schedule.c
rts/Schedule.h
rts/Sparks.c
rts/Stable.c
rts/Stats.c
rts/Task.c
rts/ThreadPaused.c [new file with mode: 0644]
rts/Timer.c
rts/Typeable.c
rts/parallel/GranSim.c
rts/posix/Itimer.c
rts/posix/Select.c
rts/posix/Signals.c
rts/sm/BlockAlloc.c [moved from rts/BlockAlloc.c with 100% similarity]
rts/sm/BlockAlloc.h [moved from rts/BlockAlloc.h with 100% similarity]
rts/sm/Compact.c [moved from rts/GCCompact.c with 99% similarity]
rts/sm/Compact.h [moved from rts/GCCompact.h with 73% similarity]
rts/sm/Evac.c [new file with mode: 0644]
rts/sm/Evac.h [new file with mode: 0644]
rts/sm/GC.c [new file with mode: 0644]
rts/sm/GC.h [new file with mode: 0644]
rts/sm/GCUtils.c [new file with mode: 0644]
rts/sm/GCUtils.h [new file with mode: 0644]
rts/sm/MBlock.c [moved from rts/MBlock.c with 100% similarity]
rts/sm/MBlock.h [moved from rts/MBlock.h with 100% similarity]
rts/sm/MarkWeak.c [new file with mode: 0644]
rts/sm/MarkWeak.h [new file with mode: 0644]
rts/sm/OSMem.h [moved from rts/OSMem.h with 100% similarity]
rts/sm/README [new file with mode: 0644]
rts/sm/Scav.c [new file with mode: 0644]
rts/sm/Scav.h [new file with mode: 0644]
rts/sm/Storage.c [moved from rts/Storage.c with 100% similarity]