File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ def test_MMTK_THREADS
29
29
end
30
30
31
31
def test_MMTK_HEAP_MIN
32
+ # Defaults to 1MiB
33
+ assert_separately ( [ ] , <<~RUBY )
34
+ assert_equal(1 * 1024 * 1024, GC.config[:mmtk_heap_min])
35
+ RUBY
36
+
32
37
# TODO: uncomment this test when the infinite loop is fixed
33
38
# assert_separately([{ "MMTK_HEAP_MODE" => "dynamic", "MMTK_HEAP_MIN" => "1" }], <<~RUBY)
34
39
# assert_equal(1, GC.config[:mmtk_heap_min])
@@ -39,6 +44,12 @@ def test_MMTK_HEAP_MIN
39
44
RUBY
40
45
end
41
46
47
+ def test_MMTK_HEAP_MIN_is_ignored_for_fixed_heaps
48
+ assert_separately ( [ { "MMTK_HEAP_MODE" => "fixed" , "MMTK_HEAP_MIN" => "1" } ] , <<~RUBY )
49
+ assert_nil(GC.config[:mmtk_heap_min])
50
+ RUBY
51
+ end
52
+
42
53
def test_MMTK_HEAP_MAX
43
54
assert_separately ( [ { "MMTK_HEAP_MODE" => "fixed" , "MMTK_HEAP_MAX" => "100MiB" } ] , <<~RUBY )
44
55
assert_equal(100 * 1024 * 1024, GC.config[:mmtk_heap_max])
You can’t perform that action at this time.
0 commit comments