[C#][iOS] Fix callbacks on AOT #388
Reference in New Issue
Block a user
No description provided.
Delete Branch "aot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Based on the idea of #386 by @rmarinho
Don't we need to free the handle? i think we might need IDisposable , free the handle on Dispose, and call Dispose(false) on the Destructor , we can clear parent weak reference too. i think it will help fix the test failing on iOS for parent destructor.
In my understanding GCHandle.Alloc with GCHandleType.Weak means we don't need to free the handle, right?
maybe iOS mono implementation has different GC timing for that certain situation?
@splhack i m not a expert but from internal feedback i got that "Yea, you still need to dispose of the GCHandle manually. "
About the test , maybe something around this :
9a68a14699
Or just skip GC test on iOS?
sure that's an option ..
How about this attempt to call GCHandle.Free?
👍
Can we merge this? why is the build failing ?
Yeah, we're trying to do that with #386.
@splhack has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Pull request closed