Skip to content
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

Fix flaky test_stat_heap_all #11038

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

peterzhu2118
Copy link
Member

We only collect GC.stat_heap(nil, stat_heap_all) once, outside of the loop, but assert_equal could allocate objects which can cause a GC to run and cause stat_heap_all to be out-of-sync.

We only collect GC.stat_heap(nil, stat_heap_all)
once, outside of the loop, but assert_equal could
allocate objects which can cause a GC to run and
cause stat_heap_all to be out-of-sync.
@peterzhu2118 peterzhu2118 merged commit 1afcaa3 into ruby:master Jul 5, 2024
106 of 107 checks passed
@peterzhu2118 peterzhu2118 deleted the flaky-stat-heap-all branch July 5, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant