mmtk / ruby

Fork of The Ruby Programming Language [mirror], with added support for MMTk
https://www.ruby-lang.org/
Other
0 stars 1 forks source link

Fix rb_mmtk_number_of_mutators #84

Closed wks closed 1 month ago

wks commented 1 month ago

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: https://github.com/mmtk/mmtk-ruby/issues/84