File tree Expand file tree Collapse file tree 11 files changed +23
-21
lines changed
test/hotspot/jtreg/vmTestbase/gc/gctests
PhantomReference/phantom001 Expand file tree Collapse file tree 11 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public static void main(String[] args) {
9494 }
9595
9696 // The class implements the logic of the testcase
97- class Test implements Runnable {
97+ class Test implements Runnable , OOMStress {
9898
9999 int iteration ;
100100 private volatile boolean finalized ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2004, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2004, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
6262
6363import nsk .share .gc .GC ;
6464import nsk .share .gc .NonbranchyTree ;
65+ import nsk .share .gc .OOMStress ;
6566import nsk .share .gc .ThreadedGCTest ;
6667import nsk .share .gc .gp .GarbageProducer ;
6768import nsk .share .gc .gp .GarbageProducerAware ;
@@ -99,7 +100,7 @@ public static void main(String[] args) {
99100 }
100101
101102 // The class implements the logic of the testcase
102- class Test implements Runnable {
103+ class Test implements Runnable , OOMStress {
103104
104105 int iteration ;
105106
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
5050 */
5151public class soft003 extends ThreadedGCTest {
5252
53- class Worker implements Runnable {
53+ class Worker implements Runnable , OOMStress {
5454
5555 private int arrayLength ;
5656 private int objectSize = 100 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4848 */
4949public class soft004 extends ThreadedGCTest {
5050
51- class Worker implements Runnable {
51+ class Worker implements Runnable , OOMStress {
5252
5353 private int arrayLength ;
5454 private int objectSize = 100 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4848 */
4949public class soft005 extends ThreadedGCTest {
5050
51- class Worker implements Runnable {
51+ class Worker implements Runnable , OOMStress {
5252
5353 private int length = 10000 ;
5454 private int objectSize = 10000 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2004, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2004, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
6262
6363import nsk .share .gc .GC ;
6464import nsk .share .gc .NonbranchyTree ;
65+ import nsk .share .gc .OOMStress ;
6566import nsk .share .gc .ThreadedGCTest ;
6667import nsk .share .gc .gp .GarbageProducer ;
6768import nsk .share .gc .gp .GarbageProducerAware ;
@@ -99,7 +100,7 @@ public static void main(String[] args) {
99100 }
100101
101102 // The class implements the logic of the testcase
102- class Test implements Runnable {
103+ class Test implements Runnable , OOMStress {
103104
104105 int iteration ;
105106
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
5454 */
5555public class weak003 extends ThreadedGCTest {
5656
57- class Worker implements Runnable {
57+ class Worker implements Runnable , OOMStress {
5858
5959 private int arrayLength ;
6060 private int objectSize = 100 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4646 */
4747public class weak004 extends ThreadedGCTest {
4848
49- class Worker implements Runnable {
49+ class Worker implements Runnable , OOMStress {
5050
5151 private int arrayLength ;
5252 private int objectSize = 100 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4848 */
4949public class weak005 extends ThreadedGCTest {
5050
51- class Worker implements Runnable {
51+ class Worker implements Runnable , OOMStress {
5252
5353 private int length = 10000 ;
5454 private int objectSize = 10000 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
5353 */
5454public class weak006 extends ThreadedGCTest {
5555
56- class Worker implements Runnable {
56+ class Worker implements Runnable , OOMStress {
5757
5858 private int length ;
5959 private int objectSize = 100 ;
You can’t perform that action at this time.
0 commit comments