From b2d3199d2246434c104f3c7d3a5d90b48d3427b4 Mon Sep 17 00:00:00 2001 From: Artem Udovichenko Date: Mon, 25 Jul 2022 16:11:08 +0300 Subject: [PATCH 1/2] Remove --run-gc-in-place in tests262 Change-Id: I17dcf15df44549244c1a3e385545ed4bf3dacba9 Signed-off-by: Artem Udovichenko --- test/runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runner.py b/test/runner.py index c6e542bd7..f31d80116 100755 --- a/test/runner.py +++ b/test/runner.py @@ -76,7 +76,7 @@ def get_args(): '--update', action='store_true', dest='update', default=False, help='update skiplist') parser.add_argument( - '--no-run-gc-in-place', action='store_true', dest='no_gip', default=False, + '--run-gc-in-place', action='store_true', dest='run_gc_in_place', default=False, help='enable --run-gc-in-place mode') parser.add_argument( '--filter', '-f', action='store', dest='filter', @@ -487,7 +487,7 @@ class Test262Runner(Runner): '--gc-type=%s' % args.gc_type, ] - if not args.no_gip: + if args.run_gc_in_place: self.runtime_args += ['--run-gc-in-place'] if args.aot: @@ -502,7 +502,7 @@ class Test262Runner(Runner): '--gc-type=%s' % args.gc_type, ] - if not args.no_gip: + if args.run_gc_in_place: self.aot_args += ['--run-gc-in-place'] self.aot_args += args.aot_args -- Gitee From 5c3d2056e74e2778712133ad1791effbdcc3fddc Mon Sep 17 00:00:00 2001 From: Artem Udovichenko Date: Tue, 9 Aug 2022 12:06:46 +0300 Subject: [PATCH 2/2] Disable tracking reclaimed objects for G1 while runing test262 --- test/runner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/runner.py b/test/runner.py index f31d80116..c0e04a08c 100755 --- a/test/runner.py +++ b/test/runner.py @@ -489,6 +489,10 @@ class Test262Runner(Runner): if args.run_gc_in_place: self.runtime_args += ['--run-gc-in-place'] + if args.gc_type == "g1-gc": + # Workaround. If don't specify this option G1 may access a deleted class while + # iterating over all objects in a region. + self.runtime_args += ['--g1-track-freed-objects=false'] if args.aot: self.arkaot = path.join(args.build_dir, 'bin', 'ark_aot') -- Gitee