Skip to content

Conversation

@gbaraldi
Copy link
Member

Adresses #50658 (comment)

This shouldn't ever trigger on normal Julia code, but might help when the gc counted malloc functions are used too much.

Also cleaned up the logic that was used for promoted_bytes. Trying to infer from the old bytes marked was unreliable. What actually matters is how many new objects we've seen

@gbaraldi gbaraldi requested a review from vtjnash December 12, 2025 22:43
@gbaraldi gbaraldi requested a review from d-netto as a code owner December 12, 2025 22:43
src/gc-stock.c Outdated
}
else {
ptls->gc_tls.gc_cache.scanned_bytes += nb;
size_t nb = jl_genericmemory_nbytes(m);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

messed up indentation here

@gbaraldi gbaraldi added backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Dec 15, 2025
@JeffBezanson JeffBezanson added the GC Garbage collector label Dec 15, 2025
@KristofferC KristofferC mentioned this pull request Dec 16, 2025
21 tasks
@gbaraldi gbaraldi merged commit 14945c0 into master Dec 16, 2025
9 of 11 checks passed
@gbaraldi gbaraldi deleted the gb/heuristic branch December 16, 2025 20:00
KristofferC pushed a commit that referenced this pull request Jan 7, 2026
KristofferC pushed a commit that referenced this pull request Jan 8, 2026
@KristofferC KristofferC mentioned this pull request Jan 9, 2026
40 tasks
@KristofferC KristofferC removed the backport 1.13 Change should be backported to release-1.13 label Jan 9, 2026
DilumAluthge pushed a commit that referenced this pull request Jan 19, 2026
DilumAluthge pushed a commit that referenced this pull request Jan 19, 2026
DilumAluthge pushed a commit that referenced this pull request Jan 19, 2026
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GC Garbage collector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants