Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise MMTk test heap size to 10MB #33

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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