From d4ee0378448f40cef8145033346efdcb53f3a0a8 Mon Sep 17 00:00:00 2001 From: yy Date: Tue, 28 May 2024 09:11:56 +0800 Subject: [PATCH 1/2] change ark.py close enable-force-gc in debug Signed-off-by: yy --- build/compile_script/ark.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index e3dea6b3..c13f10a5 100755 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -534,6 +534,8 @@ class ArkPy: self.build_for_gn_target( out_path, gn_args, self.ARG_DICT["target"]["test262"]["gn_targets_depend_on"], log_file_name) + if run_pgo and 'debug' in out_path: + args_to_test262_cmd += " --enable-force-gc" test262_cmd = self.get_test262_cmd(gn_args, out_path, x64_out_path, aot_mode, run_pgo, args_to_test262_cmd) test262_log_path = os.path.join(out_path, log_file_name) str_to_test262_log = "================================\ntest262_time: {0}\ntest262_target: {1}\n\n".format( -- Gitee From 047edd70cdcc664c16d66d22bf4f295b420374ab Mon Sep 17 00:00:00 2001 From: yy Date: Tue, 28 May 2024 03:02:21 +0000 Subject: [PATCH 2/2] update build/compile_script/ark.py. Signed-off-by: yy --- build/compile_script/ark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index c13f10a5..51673853 100755 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -535,7 +535,7 @@ class ArkPy: self.build_for_gn_target( out_path, gn_args, self.ARG_DICT["target"]["test262"]["gn_targets_depend_on"], log_file_name) if run_pgo and 'debug' in out_path: - args_to_test262_cmd += " --enable-force-gc" + args_to_test262_cmd += " --disenable-force-gc" test262_cmd = self.get_test262_cmd(gn_args, out_path, x64_out_path, aot_mode, run_pgo, args_to_test262_cmd) test262_log_path = os.path.join(out_path, log_file_name) str_to_test262_log = "================================\ntest262_time: {0}\ntest262_target: {1}\n\n".format( -- Gitee