[Haskell-cafe] getting data through foreign layer without
marshalling
Bulat Ziganshin
bulat.ziganshin at gmail.com
Mon Dec 14 03:39:26 EST 2009
Hello Donn,
Monday, December 14, 2009, 4:31:58 AM, you wrote:
> I'm just not sure where AppData lives while it's referenced in a
> FunPtr via partial application, if there might be multiple copies, etc.
GHC RTS creates thunk with this partial call. this thunk references
all the data used in computation. The thunk is placed in global
objects table and removed from the table when you perform freeHaskellFunPtr
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list