simonpj 2003/06/30 07:27:52 PDT
Modified files:
ghc/compiler/coreSyn CoreUtils.lhs
ghc/compiler/stgSyn CoreToStg.lhs
Log:
-------------------
Fix a subtle GC bug
-------------------
In GHC 6.0, the top-level definition
f = g
gets compiled as a *non-updatable* THUNK_STATIC closure. Being non-updatable,
it gets only 1 payload field. Alas, the static-link field for a THUNK_STATIC
goes in the 3rd payload field. Disaster.
Solution: make such things updatable. This is probably good because it turns
f into an IND_STATIC, which gets shorted out. (Even better would be to
allocate
an IND_STATIC in the first place.)
Revision Changes Path
1.114 +9 -1 fptools/ghc/compiler/coreSyn/CoreUtils.lhs
1.105 +12 -12 fptools/ghc/compiler/stgSyn/CoreToStg.lhs
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|