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

Skip to content

Fix flaky TestGc#test_heaps_grow_independently #13716

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

Conversation

peterzhu2118
Copy link
Member

The test sometimes fails with "Expected 2062788 to be < 2000000" because heap 0 has not been cleared yet by GC. This commit fixes it to run GC before the assertion to ensure that it does not flake.

The test sometimes fails with "Expected 2062788 to be < 2000000" because
heap 0 has not been cleared yet by GC. This commit fixes it to run GC
before the assertion to ensure that it does not flake.
@peterzhu2118 peterzhu2118 force-pushed the fix-flaky-test-heaps-grow-independently branch from f48d0ba to b2dbb66 Compare June 26, 2025 17:41
@peterzhu2118 peterzhu2118 merged commit 26508bb into ruby:master Jun 26, 2025
84 checks passed
@peterzhu2118 peterzhu2118 deleted the fix-flaky-test-heaps-grow-independently branch June 26, 2025 20: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.

2 participants