Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BUG: handle possible error for PyTraceMallocTrack #27567

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 2 commits into from
Oct 15, 2024

Conversation

mattip
Copy link
Member

@mattip mattip commented Oct 15, 2024

Follow up to #27566 where @charris noted the PyTraceMalloc_Track call can fail with -1 if there is no memory to allocate tracking information. There was also a missing Untrack call in the memory handler realloc routine.

I touched up the documentation around the API functions PyDataMem_* which still called them macros, but they are now functions.

DOC: update documentation for PyDataMem_* functions
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Oct 15, 2024
@charris charris merged commit c3fe86a into numpy:main Oct 15, 2024
67 checks passed
@charris
Copy link
Member

charris commented Oct 15, 2024

Thanks Matti.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 15, 2024
@mattip mattip deleted the PyTraceMalloc_Track branch May 5, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.