Skip to content

Commit

Permalink
Merge pull request #33 from mmtk/raise-heap-size
Browse files Browse the repository at this point in the history
Raise MMTk test heap size to 10MB
  • Loading branch information
wks authored Nov 14, 2022
2 parents d829fe4 + 210e818 commit e7694ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/ruby/test_mmtk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def test_description
['--disable-mmtk', '--enable-mmtk'],
['--disable-mmtk', '--enable=mmtk'],
['--disable-mmtk', "--mmtk-plan=#{GC::MMTk.plan_name}"],
['--disable-mmtk', '--mmtk-max-heap=1024000'],
['--disable-mmtk', '--mmtk-max-heap=10240000'],

['--disable=mmtk', '--mmtk'],
['--disable=mmtk', '--enable-mmtk'],
['--disable=mmtk', '--enable=mmtk'],
['--disable=mmtk', "--mmtk-plan=#{GC::MMTk.plan_name}"],
['--disable=mmtk', '--mmtk-max-heap=1024000']
['--disable=mmtk', '--mmtk-max-heap=10240000']
]

def test_enable
Expand Down Expand Up @@ -80,7 +80,7 @@ def test_mmtk_plan_env_var
end

def test_third_party_max_heap_env_var
assert_in_out_err([{'THIRD_PARTY_HEAP_LIMIT' => '1024000'}, '-e p GC.stat(:mmtk_total_bytes)'], '', ['1024000'])
assert_in_out_err([{'THIRD_PARTY_HEAP_LIMIT' => '10240000'}, '-e p GC.stat(:mmtk_total_bytes)'], '', ['10240000'])
end

def test_enabled
Expand All @@ -94,9 +94,9 @@ def test_plan_name
end

def test_max_heap
assert_in_out_err(['--mmtk-max-heap=1024000', '-e p GC.stat(:mmtk_total_bytes)'], '', ['1024000'])
assert_in_out_err(['--mmtk-max-heap=1000KiB', '-e p GC.stat(:mmtk_total_bytes)'], '', ['1024000'])
assert_in_out_err(['--mmtk-max-heap=1MiB', '-e p GC.stat(:mmtk_total_bytes)'], '', ['1048576'])
assert_in_out_err(['--mmtk-max-heap=10240000', '-e p GC.stat(:mmtk_total_bytes)'], '', ['10240000'])
assert_in_out_err(['--mmtk-max-heap=10000KiB', '-e p GC.stat(:mmtk_total_bytes)'], '', ['10240000'])
assert_in_out_err(['--mmtk-max-heap=10MiB', '-e p GC.stat(:mmtk_total_bytes)'], '', ['10485760'])
end

def test_gc_stat
Expand Down

0 comments on commit e7694ad

Please sign in to comment.