Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add debug message to assertion for checking GC mode #13702

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 2 commits into from
Jun 26, 2025

Conversation

peterzhu2118
Copy link
Member

We assert that the GC is not in a cycle in gc_start, but it does not show what phase we're in if the assertion fails. This commit adds a debug message for when the assertion fails.

RUBY_ASSERT_MESG_WHEN supports a format string at the end for additional
information. This commit adds support for that in GC_ASSERT.
We assert that the GC is not in a cycle in gc_start, but it does not show
what phase we're in if the assertion fails. This commit adds a debug
message for when the assertion fails.
@peterzhu2118 peterzhu2118 merged commit a4948c3 into ruby:master Jun 26, 2025
85 checks passed
@peterzhu2118 peterzhu2118 deleted the gc-mode-assert branch June 26, 2025 13:38
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