diff options
author | Peter Zhu <[email protected]> | 2025-01-14 15:59:35 -0500 |
---|---|---|
committer | git <[email protected]> | 2025-01-14 20:59:39 +0000 |
commit | f1e32914eb40737de0f639146aebaf6e3ce2bf21 (patch) | |
tree | 7441b6d8e069241875625d69ee0209e41435021a /gc/mmtk/src | |
parent | 56242ba495246e95dd5178f2ec101c1005c10afc (diff) |
[ruby/mmtk] Add mmtk_worker_count to GC.config
https://github.com/ruby/mmtk/commit/836a9059cb
Diffstat (limited to 'gc/mmtk/src')
-rw-r--r-- | gc/mmtk/src/api.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gc/mmtk/src/api.rs b/gc/mmtk/src/api.rs index 0145dcda08..3fa8b2af02 100644 --- a/gc/mmtk/src/api.rs +++ b/gc/mmtk/src/api.rs @@ -328,6 +328,11 @@ pub extern "C" fn mmtk_last_heap_address() -> Address { memory_manager::last_heap_address() } +#[no_mangle] +pub extern "C" fn mmtk_worker_count() -> usize { + memory_manager::num_of_workers(mmtk()) +} + // =============== Miscellaneous =============== #[no_mangle] |