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 labels Dec 15, 2025
@JeffBezanson JeffBezanson added the GC Garbage collector label Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.12 Change should be backported to release-1.12 backport 1.13 GC Garbage collector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants