RE: ghc 5.02.2 FFI question

2002-04-08 Thread Simon Marlow
Hi Bernie, > I've been playing with the FFI in GHC 5.02.2 > > I'm not sure if I'm using it correctly because I get a space leak > in my program. I just tried your example and it seems to run in constant space here with 5.02.2. The code looks fine - this isn't something we really envisaged peop

Re: ghc 5.02.2 FFI question

2002-04-09 Thread Bernard James POPE
Hi Simon, (posted to [EMAIL PROTECTED] in case anyone else is reading this). > I just tried your example and it seems to run in constant space here > with 5.02.2. The code looks fine - this isn't something we really > envisaged people doing with the RTS API, but there's no real problem > with i

RE: ghc 5.02.2 FFI question

2002-04-09 Thread Simon Marlow
Hi Bernie, Thanks for a very well researched bug report. I've looked into it, and there is indeed a space leak (well, two in fact). The reason I didn't notice before was because I was looking at the heap stats rather than using top; one of the leaks was with memory from malloc(), and the other