diff --git a/runtime_options.yaml b/runtime_options.yaml index 95c135d5d683ba9a7ef2e28a38e13905a9256b82..8846157e91c04461ad76a8771c5560dc5922b86e 100644 --- a/runtime_options.yaml +++ b/runtime_options.yaml @@ -144,33 +144,18 @@ options: default: true description: Enable fast heap verifier, which is faster than ordinary heap verifier but uses more internal memory -- name: fail-on-heap-verification +- name: heap-verifier lang: - ecmascript - type: bool - default: false - description: if enabled then fail execution if heap verifier found heap corruption - -- name: pre-gc-heap-verify-enabled - lang: - - ecmascript - type: bool - default: false - description: whether verify heap before GC - -- name: into-gc-heap-verify-enabled - lang: - - ecmascript - type: bool - default: false - description: whether verify heap during GC - -- name: post-gc-heap-verify-enabled - lang: - - ecmascript - type: bool - default: false - description: whether verify heap after GC + type: arg_list_t + default: [] + possible_values: + - pre + - into + - post + - fail_on_verification + description: parameters for heap verification + delimiter: ":" - name: concurrent-gc-enabled lang: diff --git a/tests/runtime/tooling/options_test/options_test.cpp b/tests/runtime/tooling/options_test/options_test.cpp index 8d3db2d73b36c4cc1810c01b16fedc5ff0eee701..f5afc7bec66f2be5604ebbb58503abc3fa1db6c5 100644 --- a/tests/runtime/tooling/options_test/options_test.cpp +++ b/tests/runtime/tooling/options_test/options_test.cpp @@ -35,7 +35,7 @@ void EcmascriptRuntimeOptionsTest::LoadCorrectOptionsList() { AddTestingOption("ecmascript.run-gc-in-place", "true"); AddTestingOption("ecmascript.gc-dump-heap", "true"); - AddTestingOption("ecmascript.pre-gc-heap-verify-enabled", "true"); + AddTestingOption("ecmascript.heap-verifier", "pre"); AddTestingOption("gc-trigger-type", "no-gc-for-start-up"); }