Re: Memory leak with NativeCall

2018-01-21 Thread Michael Stemle
I believe that this is actually a result of Perl 6 delegating responsibility of memory management for arguments passed to callbacks from native code to the native code. I wonder if the issue is that you're sending a constant which is being reallocated and recreated and never cleared out from th

Memory leak with NativeCall

2018-01-21 Thread David E.
I'm not certain where to report this (ie: rakudo vs MoarVM), so I'm starting here. After some experimentation, I finally traced down a segfault I've been getting to a memory leak in the NativeCall interface. I'm using it to facilitate testing of a 32-bit embedded (meaning no dynamic allocation) C