Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/a6e8418a71b14ef85ee7134be654689b17765f03 >--------------------------------------------------------------- commit a6e8418a71b14ef85ee7134be654689b17765f03 Author: Simon Marlow <[email protected]> Date: Wed May 25 10:00:29 2011 +0100 prog_argv and rts_argv now contain *copies* of the args passed to setupRtsFlags(), rather than sharing the memory. Previously if the caller of hs_init() passed in dynamically-allocated memory and then freed it, random crashes could happen later (#5177). includes/Rts.h | 3 - includes/rts/Flags.h | 4 +- rts/RtsFlags.c | 150 +++++++++++++++++++++++++++++++++++--------------- rts/RtsFlags.h | 1 + rts/RtsStartup.c | 5 +- 5 files changed, 111 insertions(+), 52 deletions(-) Diff suppressed because of size. To see it, use: git show a6e8418a71b14ef85ee7134be654689b17765f03 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
