equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
24 |
24 |
25 /** |
25 /** |
26 * @test |
26 * @test |
27 * @bug 6869327 |
27 * @bug 6869327 |
28 * @summary Test that C2 flag UseCountedLoopSafepoints ensures a safepoint is kept in a CountedLoop |
28 * @summary Test that C2 flag UseCountedLoopSafepoints ensures a safepoint is kept in a CountedLoop |
29 * @library /testlibrary |
29 * @library /test/lib |
30 * @modules java.base/jdk.internal.misc |
30 * @modules java.base/jdk.internal.misc |
31 * @ignore 8146096 |
31 * @ignore 8146096 |
32 * @run driver compiler.loopopts.UseCountedLoopSafepoints |
32 * @run driver compiler.loopopts.UseCountedLoopSafepoints |
33 */ |
33 */ |
34 |
34 |
35 package compiler.loopopts; |
35 package compiler.loopopts; |
36 |
36 |
37 import jdk.test.lib.OutputAnalyzer; |
37 import jdk.test.lib.process.OutputAnalyzer; |
38 import jdk.test.lib.ProcessTools; |
38 import jdk.test.lib.process.ProcessTools; |
39 |
39 |
40 import java.util.concurrent.atomic.AtomicLong; |
40 import java.util.concurrent.atomic.AtomicLong; |
41 |
41 |
42 public class UseCountedLoopSafepoints { |
42 public class UseCountedLoopSafepoints { |
43 private static final AtomicLong _num = new AtomicLong(0); |
43 private static final AtomicLong _num = new AtomicLong(0); |