Re: Re[2]: [Haskell-cafe] heap lifetime question

2008-08-07 Thread Galchin, Vasili
In which directory are they? Vasili On Thu, Aug 7, 2008 at 12:58 AM, Bulat Ziganshin [EMAIL PROTECTED]wrote: Hello Vasili, Thursday, August 7, 2008, 9:33:32 AM, you wrote: oh, it was my mistake. alloca behavior is completely defined by it's generic implementation: allocaBytes ::

Re: Re[2]: [Haskell-cafe] heap lifetime question

2008-08-07 Thread Galchin, Vasili
ok .. I will take a stab at it ... /ghc-6.8.2/libraries/base/Foreign/Marshal I am not so familiar with the ghc run-time model ... V. On Thu, Aug 7, 2008 at 1:26 AM, Galchin, Vasili [EMAIL PROTECTED] wrote: In which directory are they? Vasili On Thu, Aug 7, 2008 at 12:58 AM, Bulat

Re[2]: [Haskell-cafe] heap lifetime question

2008-08-07 Thread Henning Thielemann
On Thu, 7 Aug 2008, Bulat Ziganshin wrote: Hello Vasili, Thursday, August 7, 2008, 9:33:32 AM, you wrote: oh, it was my mistake. alloca behavior is completely defined by it's generic implementation: allocaBytes :: Int - (Ptr a - IO b) - IO b allocaBytes size = bracket (mallocBytes

Re: Re[2]: [Haskell-cafe] heap lifetime question

2008-08-07 Thread Galchin, Vasili
that is what I thought .. especially after just looking at the implementation for alloca/allocaBytes. For me and others on thie group is there documentation on the ghc run-time model and also the run-time library architecture. Both would help/aid in reading the code and of course educate more

Re[2]: [Haskell-cafe] heap lifetime question

2008-08-06 Thread Bulat Ziganshin
Hello Vasili, Thursday, August 7, 2008, 9:33:32 AM, you wrote: oh, it was my mistake. alloca behavior is completely defined by it's generic implementation: allocaBytes :: Int - (Ptr a - IO b) - IO b allocaBytes size = bracket (mallocBytes size) free although GHC implementation is much