Skip to content

Add realloc support to rtrace #1062

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
Jan 19, 2020
Merged

Add realloc support to rtrace #1062

merged 1 commit into from
Jan 19, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jan 19, 2020

As a follow-up to #1061 this adds a new onrealloc callback to RTrace, which is called in between the allocation of the new block and freeing the old block, so RC of the old block can be copied to the new block, plus performing the typical checks.

Also related to the leak I mentioned in #1042 (comment).

cc @jtenner Looks like this is relevant for as-pect.

@dcodeIO dcodeIO merged commit 289ddb7 into master Jan 19, 2020
@dcodeIO dcodeIO deleted the rtrace-realloc branch March 15, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant