> hey nicholas,
> 
> i'm trying to make my cptr helper lib memory-safe. i've alread integrated 
> your suggestion of storing the allocated size together with the pointer in a 
> new structure, which seems to work nice.
> 
> now i would like to do some tests to assure no memleaks occur. for that, i'd 
> need to find a way to trigger garbage collection of my abstracts. i know that 
> setting the variable to null will (sooner or later) do so, but i'd need to do 
> it "now".
> 
> is there a way already in neko? or some boehm-gc function i could wrap (for 
> this preliminary purpose)?

#include <neko_vm.h>
void neko_gc_major();

You can wrap a call to this function to be able to call it from a Neko
program.

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to