This class may be removed in the future. Consider the replacements in JEP 193 'Variable Handles': http://openjdk.java.net/jeps/193
static void throwException(Throwable cause) { // JVM has been observed to crash when passing a null argument. See https://github.com/netty/netty/issues/4131. UNSAFE.throwException(checkNotNull(cause, "cause")); }
static void throwException(Throwable cause) { // JVM has been observed to crash when passing a null argument. See https://github.com/netty/netty/issues/4131. UNSAFE.throwException(checkNotNull(cause, "cause")); }
/** * Throws exception, if any, associated with the given status. */ private void reportException(int s) { Throwable ex = ((s == CANCELLED) ? new CancellationException() : (s == EXCEPTIONAL) ? getThrowableException() : null); if (ex != null) U.throwException(ex); }
static void throwException(Throwable cause) { // JVM has been observed to crash when passing a null argument. See https://github.com/netty/netty/issues/4131. UNSAFE.throwException(checkNotNull(cause, "cause")); }
/** * Raises an exception bypassing compiler checks for checked exceptions. */ public static void throwException(Throwable t) { Unsafe unsafe = UnsafeUtil.getUnsafe(); if (unsafe != null) { unsafe.throwException(t); } else { ThrowUtil.<RuntimeException>throwException0(t); } }
/** * Raises an exception bypassing compiler checks for checked exceptions. */ public static void throwException(Throwable t) { Unsafe unsafe = UnsafeUtil.getUnsafe(); if (unsafe != null) { unsafe.throwException(t); } else { ThrowUtil.<RuntimeException>throwException0(t); } }
U.throwException(ex); return tasks;
Unsafe unsafe = getUnsafe(); unsafe.throwException(new Exception());
static void throwException(Throwable cause) { // JVM has been observed to crash when passing a null argument. See https://github.com/netty/netty/issues/4131. UNSAFE.throwException(checkNotNull(cause, "cause")); }
/** Throw the exception. * The exception may be an undeclared checked exception. */ public final void throwException(Throwable ee) { unsafe.throwException( ee ) ; }
public static void throwUnchecked(Throwable e) { if (e instanceof RuntimeException) { throw (RuntimeException)e; } UNSAFE.throwException(e); }
/** * Raises an exception bypassing compiler checks for checked exceptions. */ public static void throwException(Throwable t) { _UNSAFE.throwException(t); }
/** * Raises an exception bypassing compiler checks for checked exceptions. */ public static void throwException(Throwable t) { UNSAFE.throwException(t); }
/** * Throw the exception. The exception may be an undeclared checked exception. */ public final void throwException(Throwable ee) { unsafe.throwException(ee); }
/** Throw the exception. * The exception may be an undeclared checked exception. */ public final void throwException(Throwable ee) { unsafe.throwException( ee ) ; }
/** * Raises an exception bypassing compiler checks for checked exceptions. */ public static void throwException(Throwable t) { _UNSAFE.throwException(t); }
/** * Utility method to support throwing checked exceptions out of the streams API * * @param t the exception to rethrow * @return the exception */ public static RuntimeException rethrow(Throwable t) { NativeBytes.UNSAFE.throwException(t); throw new AssertionError(); }
static void throwException(Throwable cause) { // JVM has been observed to crash when passing a null argument. See https://github.com/netty/netty/issues/4131. UNSAFE.throwException(checkNotNull(cause, "cause")); }