[ruby/mmtk] Bump mmtk-core

Fixes a bug where there is an infinite loop when MMTK_HEAP_MIN is small.

https://github.com/ruby/mmtk/commit/12c7ede20b
This commit is contained in:
Peter Zhu 2025-01-21 12:01:47 -05:00 committed by git
parent 6d806031ed
commit be66448311
3 changed files with 6 additions and 7 deletions

4
gc/mmtk/Cargo.lock generated
View File

@ -432,7 +432,7 @@ dependencies = [
[[package]]
name = "mmtk"
version = "0.30.0"
source = "git+https://github.com/mmtk/mmtk-core.git?rev=c61e6c84f97ddb91e47d76914af2f7e462f1c7f8#c61e6c84f97ddb91e47d76914af2f7e462f1c7f8"
source = "git+https://github.com/mmtk/mmtk-core.git?rev=051bc7470feef915c445305301e6113f86d3957b#051bc7470feef915c445305301e6113f86d3957b"
dependencies = [
"atomic",
"atomic-traits",
@ -468,7 +468,7 @@ dependencies = [
[[package]]
name = "mmtk-macros"
version = "0.30.0"
source = "git+https://github.com/mmtk/mmtk-core.git?rev=c61e6c84f97ddb91e47d76914af2f7e462f1c7f8#c61e6c84f97ddb91e47d76914af2f7e462f1c7f8"
source = "git+https://github.com/mmtk/mmtk-core.git?rev=051bc7470feef915c445305301e6113f86d3957b#051bc7470feef915c445305301e6113f86d3957b"
dependencies = [
"proc-macro-error",
"proc-macro2",

View File

@ -26,7 +26,7 @@ features = ["is_mmtk_object", "object_pinning", "sticky_immix_non_moving_nursery
# Uncomment the following lines to use mmtk-core from the official repository.
git = "https://github.com/mmtk/mmtk-core.git"
rev = "c61e6c84f97ddb91e47d76914af2f7e462f1c7f8"
rev = "051bc7470feef915c445305301e6113f86d3957b"
# Uncomment the following line to use mmtk-core from a local repository.
# path = "../../../mmtk-core"

View File

@ -34,10 +34,9 @@ module MMTk
assert_equal(1 * 1024 * 1024, GC.config[:mmtk_heap_min])
RUBY
# TODO: uncomment this test when the infinite loop is fixed
# assert_separately([{ "MMTK_HEAP_MODE" => "dynamic", "MMTK_HEAP_MIN" => "1" }], <<~RUBY)
# assert_equal(1, GC.config[:mmtk_heap_min])
# RUBY
assert_separately([{ "MMTK_HEAP_MODE" => "dynamic", "MMTK_HEAP_MIN" => "1" }], <<~RUBY)
assert_equal(1, GC.config[:mmtk_heap_min])
RUBY
assert_separately([{ "MMTK_HEAP_MODE" => "dynamic", "MMTK_HEAP_MIN" => "10MiB", "MMTK_HEAP_MAX" => "1GiB" }], <<~RUBY)
assert_equal(10 * 1024 * 1024, GC.config[:mmtk_heap_min])