Nicolas Cannasse wrote:
Niel Drummond a écrit :
hello neko-programmers,
while writing for the neko CFFI I would like to be able to trigger
the GC, so I can test if some variables are swept up or not - eg like
the ruby method GC.start. Is that possible ? In GDB I see a function
GC_gcollect - is that something I can work with ?
You have a run_gc primitive in std.ndll, see
http://nekovm.org/doc/view/misc
Set "major" to true to trigger a full collection cycle.
Finalizers are not guaranteed to be run immediately.
ah very nice, thank you and happy new year!
- Niel
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)