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.
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