Conversation
|
I will see if possible. Not easy to automatically track the 'C finalizer' execution.
This only apply to custom block without finalizer. Custom block with |
There was a problem hiding this comment.
Can you add have a finalizer not null?
|
For the testsuite: perhaps we can add a primitive for computing the total number of memory taken by an ocaml program. It is not an easy thing to do in a portable way but it can be useful for tracking memory usage outside the ocaml heap, like for #6294. Your fix is simple and not intrusive and I think it should be applied. For a future modification of the marshalling format, I just wonder if you can think of a way for allocating directly |
|
This was discussed in a development meeting, and we found that forcing a minor collection at each bigarray unmarshalling had an unreasonsable performance cost for some workflows. Alternative approaches have been discussed, including the one proposed by Pierre in #92 , which supersedes the present PR. |
Moved macro 'Assert' from private zone into public space in misc.h
Make `Reloadgen.reload` tail recursive.
Make `Reloadgen.reload` tail recursive.
Force minor collection when the unmarshalled value contains custom block with finalizer and has been allocated in the minor heap