Ben Lippmeier wrote:

I'm trying to fix http://hackage.haskell.org/trac/ghc/ticket/1015 (segv on solaris with regex-posix). This bug only appears when using ghci. I think it's something to do with weak pointers / finalizers, but my hacks on the rts seem to not affect the stage2 compiler.

ie:

ghc$ cd rts
ghc/rts$ ... hack on rts ...
ghc/rts$ cd ../compiler
ghc/compiler$ make stage=2
ghc/compiler$ ../ghc/stage2-inplace/ghc --interactive -- no effect??

If I, say, modify rts/Weak.c:scheduleFinalizers to print out what finalizes are being run on each call, how do I make ghci with the stage2 compiler use this change?

Try this instead:

ghc$ cd rts
ghc/rts$ ... hack on rts ...
ghc/rts$ cd ../ghc
ghc/ghc$ make rebuild stage=2

in the new build system this will be:

ghc$ cd ghc
ghc/ghc$ make stage2

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to