-
Notifications
You must be signed in to change notification settings - Fork 422
Add supprt for new c23 deallocators #817
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
base: main
Are you sure you want to change the base?
Conversation
This commit introduces 2 new functions to add support for `free_sized` and `free_aligned_sized` deallocators introduced in c23. We ensure that `free_sized` and `free_aligned_sized` are skipped if unavailable otherwise we get a `FREE` record recorded for them. Signed-off-by: Nana Adjei Manu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good start, but I see a lot of things here that don't look right.
Remove `glibc` guards for new functions to support all libc implementations. Updates tests to skip if compilation fails on a specific platform. Signed-off-by: Nana Adjei Manu <[email protected]>
Update line number assertions in three failing integration tests to match current file structure after recent code additions. The tests were failing due to line number shifts caused by: - Addition of C23 deallocator support tests - Code review improvements Tests affected: - test_misbehaving_extension: 83 → 85 - test_extension_that_uses_pygilstate_ensure: 154 → 156, 155 → 157 - test_native_dlopen: 226 → 228 Signed-off-by: Nana Adjei Manu <[email protected]>
653f4e6
to
79ca2a2
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #817 +/- ##
==========================================
- Coverage 92.16% 91.81% -0.36%
==========================================
Files 95 95
Lines 11936 11981 +45
Branches 412 414 +2
==========================================
- Hits 11001 11000 -1
- Misses 935 981 +46
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
closes #725
This commit introduces 2 new functions to add support for
free_sized
andfree_aligned_sized
deallocators introduced in c23.Tests ensure that
free_sized
andfree_aligned_sized
are skipped if unavailable otherwise we get aFREE
record recorded for them.