Making java.util.concurrent compilable without references to sun.misc.Unsafe and co.
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * This code is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 only, as
6 * published by the Free Software Foundation. Oracle designates this
7 * particular file as subject to the "Classpath" exception as provided
8 * by Oracle in the LICENSE file that accompanied this code.
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 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
24 package java.util.concurrent;
26 import java.lang.reflect.Field;
29 static Unsafe getUnsafe() {
30 throw new SecurityException();
33 void throwException(Throwable exception) {
34 throw new SecurityException();
37 void putOrderedObject(Object q, long u, ForkJoinTask<?> t) {
38 throw new SecurityException();
41 boolean compareAndSwapObject(Object q, long l, Object t, Object object) {
42 throw new SecurityException();
45 Object getObjectVolatile(Object oldQ, long u) {
46 throw new SecurityException();
49 void putObjectVolatile(Object q, long l, Object t) {
50 throw new SecurityException();
53 long arrayBaseOffset(Class a) {
54 throw new SecurityException();
57 int arrayIndexScale(Class a) {
58 throw new SecurityException();
61 boolean compareAndSwapLong(Object aThis, long ctlOffset, long c, long nc) {
62 throw new SecurityException();
65 void unpark(ForkJoinWorkerThread w) {
66 throw new SecurityException();
69 boolean compareAndSwapInt(Object aThis, long blockedCountOffset, int b, int i) {
70 throw new SecurityException();
73 long objectFieldOffset(Field declaredField) {
74 throw new SecurityException();