Content-Length: 295451 | pFad | http://github.com/numpy/numpy/pull/29006

B8 ENH: Disable the alloc cache under address and memory sanitizers by hawkinsp · Pull Request #29006 · numpy/numpy · GitHub
Skip to content

ENH: Disable the alloc cache under address and memory sanitizers #29006

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
May 19, 2025

Conversation

hawkinsp
Copy link
Contributor

We've been carrying a variant of this patch in our local copy of NumPy for some time.

The alloc cache reduces the effectiveness of use-after-free or use-of-uninitialized memory warnings because caching of allocations means they may be reused for a different allocation, potentially hiding real problems.

We've been carrying a variant of this patch in our local copy of NumPy
for some time. The alloc cache reduces the effectiveness of
use-after-free or use-of-uninitialized memory warnings because caching
of allocations means they may be reused for a different allocation,
potentially hiding real problems.
@charris
Copy link
Member

charris commented May 19, 2025

Seems reasonable to me. @ngoldbaum Thoughts?

@ngoldbaum
Copy link
Member

Seems reasonable to me as well.

@charris charris merged commit 0506cf6 into numpy:main May 19, 2025
74 checks passed
@charris
Copy link
Member

charris commented May 19, 2025

Thanks @hawkinsp .

seberg added a commit to seberg/numpy that referenced this pull request May 23, 2025
numpygh-29006 got the branching wrong leaving the cache undefined on most
GCC/clang, which means we wouldn't use it.

Also move it up so that we can just remove the unused globals entirely.
seberg added a commit to seberg/numpy that referenced this pull request May 23, 2025
numpygh-29006 got the branching wrong leaving the cache undefined on most
GCC/clang, which means we wouldn't use it.

Also move it up so that we can just remove the unused globals entirely.
charris pushed a commit to charris/numpy that referenced this pull request May 23, 2025
numpygh-29006 got the branching wrong leaving the cache undefined on most
GCC/clang, which means we wouldn't use it.

Also move it up so that we can just remove the unused globals entirely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/numpy/numpy/pull/29006

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy