Version française
Home     About     Download     Resources     Contact us    
Browse thread
C binding and GC interaction: storing values outside the heap
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Paolo Donadeo <p.donadeo@g...>
Subject: Re: [Caml-list] C binding and GC interaction: storing values outside the heap
On Tue, Sep 7, 2010 at 23:12, Stéphane Glondu wrote:
> Why don't you call caml_register_global_root on &(data->state_value) as well?

This was a solution I tried, but with the additional global root the
finalization function was never called by the GC, so it solved the
segfault with a memory leak :-)


-- 
Paolo â  â µ