Skip to content

Slightly rework the implementation of objc_alloc_init. - #435

Merged
davidchisnall merged 1 commit into
masterfrom
fix-fast-init-nil-alloc
Oct 18, 2026
Merged

davidchisnall merged 1 commit into
masterfrom
fix-fast-init-nil-alloc

Conversation

@davidchisnall

Copy link
Copy Markdown
Member

This now assumes the fast paths are more likely and inlines the fast-path alloc. If we're doing the fast-path alloc, then we get back a valid id of the correct class. If not, then we have to check for some special cases (a different class or a nil return).

Fixes #432

This now assumes the fast paths are more likely and inlines the
fast-path alloc.  If we're doing the fast-path alloc, then we get back a
valid id of the correct class.  If not, then we have to check for some
special cases (a different class or a nil return).

Fixes #432
@davidchisnall
davidchisnall merged commit 2ca8ae2 into master Oct 18, 2026
91 checks passed
@davidchisnall
davidchisnall deleted the fix-fast-init-nil-alloc branch October 18, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

segfault in objc_alloc_init()

1 participant