equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2015, 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. |
40 |
40 |
41 /* |
41 /* |
42 * @test |
42 * @test |
43 * @bug 8003985 |
43 * @bug 8003985 |
44 * @summary Support Contended Annotation - JEP 142 |
44 * @summary Support Contended Annotation - JEP 142 |
45 * |
45 * @modules java.base/sun.misc |
46 * @run main/othervm -XX:-RestrictContended Basic |
46 * @run main/othervm -XX:-RestrictContended Basic |
47 */ |
47 */ |
48 public class Basic { |
48 public class Basic { |
49 |
49 |
50 private static final Unsafe U; |
50 private static final Unsafe U; |