[project @ 2001-08-07 09:20:52 by simonmar]
authorsimonmar <unknown>
Tue, 7 Aug 2001 09:20:52 +0000 (09:20 +0000)
committersimonmar <unknown>
Tue, 7 Aug 2001 09:20:52 +0000 (09:20 +0000)
commit433cdcade29d3a887e4db32b241b98a0eadb39d0
tree4207472b2556942c45edd6059fcdc9245ebdc854
parent0632467ac5a762fba828925b3a15c62f22fad7c5
[project @ 2001-08-07 09:20:52 by simonmar]
- Allow RTS options to be given using the GHCRTS environment variable.

- Fix the heap size calculation to take into account all generations.
  It's more conservative than it used to be, but now it is less likely
  that the maximum heap size will be exceeded.

- Compacting collection is turned on automatically when residency
  reaches 30% of the maximum heap size, tunable with +RTS -c<n>.
  +RTS -c turns off compaction altogether.

- The maximum heap size is off by default.  NOTE: this also means no
  compaction by default.  It is recommended that people enable a maximum
  heap size for their system using the GHCRTS environment var; eg:
  GHCRTS=-M128m.
ghc/rts/GC.c
ghc/rts/RtsFlags.c
ghc/rts/RtsFlags.h
ghc/rts/Storage.c