Skip to content
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

revival of must_not_null() #5068

Merged
merged 1 commit into from
Nov 11, 2021
Merged

revival of must_not_null() #5068

merged 1 commit into from
Nov 11, 2021

Conversation

shyouhei
Copy link
Member

@shyouhei shyouhei commented Nov 2, 2021

Presence of RBIMPL_ATTR_NONNULL let C compilers to eliminate must_not_null(). Because null pointers are not allowed to exist there are no reason to call the function. In reality null pointers are still passed to those functions in a number of ways. Runtime check for them are definitely nice to have. fix [Feature#18280]

Presence of RBIMPL_ATTR_NONNULL let C compilers to eliminate
must_not_null().  Because null pointers are not allowed to exist there
are no reason to call the function.  In reality null pointers are still
passed to those functions in a number of ways.  Runtime check for them
are definitely nice to have.  fix [Feature#18280]
@shyouhei
Copy link
Member Author

shyouhei commented Nov 2, 2021

FYI @ukolovda @xtkoba @eightbitraptor

@shyouhei shyouhei merged commit 33533fa into ruby:master Nov 11, 2021
@shyouhei shyouhei deleted the must_not_null branch July 4, 2023 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant