<p>The issue is calling out to swift or OBJ-C code could make autoreleased object which exist both in ARC and non-arc.</p>
<p>At camp smalltalk I'll go thru the list and see which require wrapping.  Some do not.<br>
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</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/374#issuecomment-472524086">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyWxgpHDMJ-w1sW6c1YhkhR5mZaBsTks5vWTSMgaJpZM4bXsAc">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW_Q_-Z3u68CM1usTSNPzSjRrW5koks5vWTSMgaJpZM4bXsAc.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@johnmci in #374: The issue is calling out to swift or OBJ-C code could make autoreleased object which exist both in ARC and non-arc. \r\n\r\nAt camp smalltalk I'll go thru the list and see which require wrapping.  Some do not. \r\nIn 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\r\n"}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/374#issuecomment-472524086"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/374#issuecomment-472524086",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/374#issuecomment-472524086",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>