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

Move heap_size batching code into pair of functions #51611

Merged
merged 8 commits into from
Nov 17, 2023

Conversation

vchuravy
Copy link
Member

@vchuravy vchuravy commented Oct 5, 2023

Also fixed a bug in calloc accounting.

@vchuravy vchuravy added GC Garbage collector backport 1.10 Change should be backported to the 1.10 release labels Oct 5, 2023
@gbaraldi
Copy link
Member

gbaraldi commented Oct 6, 2023

I almost want to have one for realloc that takes in old size and new size. But thanks this code needed some DRY

@d-netto
Copy link
Member

d-netto commented Oct 6, 2023

SGTM.

I can still reproduce #51601 on this PR, which suggests that the accounting bug fixed in the implementation of the calloc bytes tracking might not be the culprit of that issue, similar to what was reported in #51601 (comment).

@gbaraldi gbaraldi removed the backport 1.10 Change should be backported to the 1.10 release label Oct 23, 2023
@gbaraldi
Copy link
Member

I implemented the finalizer stuff and on the faulty benchmark it seems to work as expected

src/gc.c Outdated Show resolved Hide resolved
src/gc.c Outdated Show resolved Hide resolved
src/gc.c Show resolved Hide resolved
src/gc.c Outdated Show resolved Hide resolved
@d-netto
Copy link
Member

d-netto commented Nov 1, 2023

Bump.

@gbaraldi
Copy link
Member

gbaraldi commented Nov 6, 2023

@d-netto are you ok with merging this?

@oscardssmith oscardssmith added bugfix This change fixes an existing bug GC Garbage collector and removed GC Garbage collector labels Nov 6, 2023
@gbaraldi gbaraldi merged commit 29be3ef into master Nov 17, 2023
5 of 7 checks passed
@gbaraldi gbaraldi deleted the vc/batched_accounting branch November 17, 2023 13:21
d-netto pushed a commit that referenced this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug GC Garbage collector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants