Skip to content

Conversation

@d-netto
Copy link
Member

@d-netto d-netto commented Nov 13, 2025

See PR title. I plan to clean up the GC metrics code a bit more in subsequent PRs.

@d-netto d-netto added the GC Garbage collector label Nov 13, 2025
@d-netto d-netto force-pushed the dcn-add-comments-to-gc-metrics branch from 6709139 to 9f595eb Compare November 13, 2025 00:16
@d-netto
Copy link
Member Author

d-netto commented Nov 13, 2025

Note: confirm whether renaming the GC_Num's collect field to interval would be a breaking change.

total_allocd::Int64
# (GC internal) Per-thread allocation quota before triggering a GC
# NOTE: This field is no longer used by the heuristics in the stock GC
interval::Csize_t
Copy link
Member

Choose a reason for hiding this comment

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

Apart from this change, LGTM. Will a nanosoldier run show how much breakage this will cause?

Copy link
Member

Choose a reason for hiding this comment

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

@d-netto If you want to make this non-breaking, you can keep both names, and leave a comment saying the old one is deprecated and will be removed in future versions.

You can possible even mark it deprecated? I don't know if that's possible to do for a field.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's wait for the results of PkgEval.

If only a few packages are using this field, then I'm inclined to just remove it and open issues on those packages to inform them that they should use interval instead.

@d-netto
Copy link
Member Author

d-netto commented Nov 13, 2025

@nanosoldier runtests()

@nanosoldier
Copy link
Collaborator

The package evaluation job you requested has completed - possible new issues were detected.
The full report is available.

Report summary

❗ Packages that crashed

9 packages crashed on the previous version too.

✖ Packages that failed

15 packages failed only on the current version.

  • Package has test failures: 4 packages
  • Package tests unexpectedly errored: 1 packages
  • Tests became inactive: 2 packages
  • Test duration exceeded the time limit: 8 packages

1509 packages failed on the previous version too.

✔ Packages that passed tests

5 packages passed tests only on the current version.

  • Other: 5 packages

5414 packages passed tests on the previous version too.

~ Packages that at least loaded

3280 packages successfully loaded on the previous version too.

➖ Packages that were skipped altogether

900 packages were skipped on the previous version too.

@d-netto
Copy link
Member Author

d-netto commented Nov 14, 2025

I've looked over the test failures in the nanosoldier report above and didn't find a test that failed because the collect field was renamed to interval.

@d-netto d-netto merged commit 6a55e52 into master Nov 14, 2025
8 checks passed
@d-netto d-netto deleted the dcn-add-comments-to-gc-metrics branch November 14, 2025 22:33
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.

6 participants