
io.reactors.concurrent.unsafe Maven / Gradle / Ivy
The newest version!
package io.reactors.common.concurrent;
import sun.misc.Unsafe;
import java.lang.reflect.Field;
public class unsafe {
final static Unsafe instance;
static {
try {
Field f = Unsafe.class.getDeclaredField("theUnsafe");
f.setAccessible(true);
instance = (Unsafe) f.get(null);
} catch (Exception e) {
// Unsafe instance could not be created
throw new Error(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy