[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] callout from interp.c code to objc/swift code need autorelease pool (#374)

johnmci notifications at github.com
Wed Mar 13 17:25:33 UTC 2019


The issue is calling out to swift or OBJ-C code could make autoreleased object which exist both in ARC and non-arc. 

At camp smalltalk I'll go thru the list and see which require wrapping.  Some do not. 
In general the onus has been on the called method to do the right thing with memory management, so there is no automatic wrapping to cleanup autoreleased objects.  I should benchmark the setup/takedown if it's really fast then maybe we can see how to make it explicit


-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/374#issuecomment-472524086
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190313/f00494b0/attachment.html>


More information about the Vm-dev mailing list