equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2017, SAP SE and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2017, SAP SE and/or its affiliates. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 * or visit www.oracle.com if you need additional information or have any |
21 * or visit www.oracle.com if you need additional information or have any |
22 * questions. |
22 * questions. |
23 */ |
23 */ |
24 |
24 |
|
25 package gc.stress.TestJNIBlockFullGC; |
|
26 |
25 /* |
27 /* |
26 * @test TestJNIBlockFullGC |
28 * @test TestJNIBlockFullGC |
27 * @summary Check that in G1 a Full GC to reclaim space can not be blocked out by the GC locker. |
29 * @summary Check that in G1 a Full GC to reclaim space can not be blocked out by the GC locker. |
28 * @key gc |
30 * @key gc |
29 * @requires vm.gc.G1 |
31 * @requires vm.gc.G1 |
30 * @run main/othervm/native -Xmx64m -XX:+UseG1GC -Xlog:gc=info,gc+alloc=trace -XX:MaxGCPauseMillis=10 TestJNIBlockFullGC 10 10000 10000 10000 30000 10000 0.7 |
32 * @run main/othervm/native -Xmx64m -XX:+UseG1GC -Xlog:gc=info,gc+alloc=trace -XX:MaxGCPauseMillis=10 gc.stress.TestJNIBlockFullGC.TestJNIBlockFullGC 10 10000 10000 10000 30000 10000 0.7 |
31 */ |
33 */ |
32 |
34 |
33 import java.lang.ref.SoftReference; |
35 import java.lang.ref.SoftReference; |
34 |
36 |
35 public class TestJNIBlockFullGC { |
37 public class TestJNIBlockFullGC { |