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 rb_mmtk_number_of_mutators #84

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

wks
Copy link

@wks wks commented Aug 1, 2024

It previously returns the number of threads, including cached threads not executing Ruby code. That is inconsistent with the number of mutators returned from rb_mmtk_get_mutators. This commit reimplementa rb_mmtk_number_of_mutators with rb_mmtk_get_mutators to ensure they see the same number of mutators.

Fixes: mmtk/mmtk-ruby#84

It previously returns the number of threads, including cached threads
not executing Ruby code.  That is inconsistent with the number of
mutators returned from rb_mmtk_get_mutators.  This commit reimplementa
rb_mmtk_number_of_mutators with rb_mmtk_get_mutators to ensure they
see the same number of mutators.

Fixes: mmtk/mmtk-ruby#84
wks added a commit to wks/mmtk-ruby that referenced this pull request Aug 1, 2024
Updated the `ruby` repo revision to fix a bug where the number of
mutators returned from `ActivePlan::number_of_mutators` does not match
the number of mutators returned from `ActivePlan::mutators`.

Also updated the `mmtk-core` repo revision.  More assertions are added
so that such bugs can be detected earlier.

mmtk-core PR: mmtk/mmtk-core#1182
ruby PR: mmtk/ruby#84

Fixes: mmtk#84
@wks wks merged commit 8082532 into mmtk:dev/mmtk-overrides-default Aug 1, 2024
191 of 207 checks passed
mmtkgc-bot added a commit to mmtk/mmtk-ruby that referenced this pull request Aug 2, 2024
Updated the `ruby` repo revision to fix a bug where the number of
mutators returned from `ActivePlan::number_of_mutators` does not match
the number of mutators returned from `ActivePlan::mutators`.

Also updated the `mmtk-core` repo revision. More assertions are added so
that such bugs can be detected earlier.

mmtk-core PR: mmtk/mmtk-core#1182
ruby PR: mmtk/ruby#84

Fixes: #84

---------

Co-authored-by: mmtkgc-bot <[email protected]>
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.

abandoned_in_gc not empty in MarkSweep
1 participant