July 23, 2015
6:25 p.m.
On 23 Jul 2015, at 19:44, Holger Freyther <holger@freyther.de> wrote:
On 23 Jul 2015, at 19:15, Max Leske <maxleske@gmail.com> wrote:
Did you try the #optMayGC option I suggested? It really looks like the method code may be moved by the GC.
yes, I tried it but it looks like optMayGC is relevant in case C will callback to Smalltalk. I donât have this case here. :(
Well, if the function call takes a very long time⦠You never know. Just thought that may be the easiest solution.
Is the ByteArray you pass being allocated by NativeBoost? NativeBoost uses mmap and maybe thereâs some missmanagement such that you get a buffer overflow. You could try allocating the memory with malloc yourself and see if that fixes the problem. Cheers, Max