T1969 test definition overrides compiler residency collection params
test('T1969',
[# expect_broken(12437),
collect_compiler_residency(20),
collect_compiler_stats('bytes allocated', 1),
only_ways(['normal']),
extra_hc_opts('-dcore-lint -static'),
# Leave -dcore-lint on for this one test, so that we have something
# that will catch a regression in -dcore-lint performance.
],
compile,
[''])
Here the line extra_hc_opts(...)
overrides extra hc opts set by collect_compier_residency
:
RESIDENCY_OPTS = '+RTS -A256k -i0 -h -RTS'
def collect_compiler_residency(tolerance_pct: float):
return [
collect_compiler_stats(['peak_megabytes_allocated', 'max_bytes_used'], tolerance_pct),
extra_hc_opts(RESIDENCY_OPTS),
# The nonmoving collector does not support -G1
omit_ways([WayName('nonmoving_thr_ghc')])
]
As a result we don't pass -A256k -i0 -h
when building this test, and max residency numbers are very unstable.