Skip to content

* fixed: #684 -- crash on GC when releasing object that fails to init #686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

dkimitsa
Copy link
Contributor

root case

when init return nil -- it calls -release on allocated object. but objc code was keeping old handle returned by +alloc. as result when Java object with this handle was disposed by GC -- it was calling -release on this zombie handle that caused EXC_BAD_ACCESS

…o `init`

root case: when init return nil -- it calls `-release` on allocated object.
but objc code was keeping old handle returned by `+alloc`. as result when Java object with this
handle was disposed by GC -- it was calling `-release` on this zombie handle that caused EXC_BAD_ACCESS
@Tom-Ski Tom-Ski merged commit 09b2a4b into MobiVM:master Jan 3, 2023
@dkimitsa dkimitsa deleted the fix/684-when-init-fails branch March 29, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants