1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/rt/emul/compact/src/main/java/java/util/concurrent/Unsafe.java Sat Mar 19 13:15:11 2016 +0100
1.3 @@ -0,0 +1,77 @@
1.4 +/*
1.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1.6 + *
1.7 + * This code is free software; you can redistribute it and/or modify it
1.8 + * under the terms of the GNU General Public License version 2 only, as
1.9 + * published by the Free Software Foundation. Oracle designates this
1.10 + * particular file as subject to the "Classpath" exception as provided
1.11 + * by Oracle in the LICENSE file that accompanied this code.
1.12 + *
1.13 + * This code is distributed in the hope that it will be useful, but WITHOUT
1.14 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1.15 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1.16 + * version 2 for more details (a copy is included in the LICENSE file that
1.17 + * accompanied this code).
1.18 + *
1.19 + * You should have received a copy of the GNU General Public License version
1.20 + * 2 along with this work; if not, write to the Free Software Foundation,
1.21 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1.22 + *
1.23 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1.24 + * or visit www.oracle.com if you need additional information or have any
1.25 + * questions.
1.26 + */
1.27 +package java.util.concurrent;
1.28 +
1.29 +import java.lang.reflect.Field;
1.30 +
1.31 +final class Unsafe {
1.32 + static Unsafe getUnsafe() {
1.33 + throw new SecurityException();
1.34 + }
1.35 +
1.36 + void throwException(Throwable exception) {
1.37 + throw new SecurityException();
1.38 + }
1.39 +
1.40 + void putOrderedObject(Object q, long u, ForkJoinTask<?> t) {
1.41 + throw new SecurityException();
1.42 + }
1.43 +
1.44 + boolean compareAndSwapObject(Object q, long l, Object t, Object object) {
1.45 + throw new SecurityException();
1.46 + }
1.47 +
1.48 + Object getObjectVolatile(Object oldQ, long u) {
1.49 + throw new SecurityException();
1.50 + }
1.51 +
1.52 + void putObjectVolatile(Object q, long l, Object t) {
1.53 + throw new SecurityException();
1.54 + }
1.55 +
1.56 + long arrayBaseOffset(Class a) {
1.57 + throw new SecurityException();
1.58 + }
1.59 +
1.60 + int arrayIndexScale(Class a) {
1.61 + throw new SecurityException();
1.62 + }
1.63 +
1.64 + boolean compareAndSwapLong(Object aThis, long ctlOffset, long c, long nc) {
1.65 + throw new SecurityException();
1.66 + }
1.67 +
1.68 + void unpark(ForkJoinWorkerThread w) {
1.69 + throw new SecurityException();
1.70 + }
1.71 +
1.72 + boolean compareAndSwapInt(Object aThis, long blockedCountOffset, int b, int i) {
1.73 + throw new SecurityException();
1.74 + }
1.75 +
1.76 + long objectFieldOffset(Field declaredField) {
1.77 + throw new SecurityException();
1.78 + }
1.79 +
1.80 +}