Util.java revision 2984
3853N/A return new BufferCache();
3853N/A private static class BufferCache {
3853N/A BufferCache() {
count--;
return buf;
return buf;
private static class SelectorWrapper {
public void run () {
throws IOException
return sel;
throws IOException
return bs;
int n = length;
return bs2;
return new Set<E>() {
public boolean add(E o){
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
private static byte _get(long a) {
private static void _put(long a, byte b) {
return unsafe;
static int pageSize() {
return pageSize;
private static void initDBBConstructor() {
new Class[] { int.class,
FileDescriptor.class,
Runnable.class });
} catch (ClassNotFoundException x) {
throw new InternalError();
} catch (NoSuchMethodException x) {
throw new InternalError();
} catch (IllegalArgumentException x) {
throw new InternalError();
} catch (ClassCastException x) {
throw new InternalError();
return null;
fd,
unmapper });
} catch (InstantiationException e) {
throw new InternalError();
} catch (IllegalAccessException e) {
throw new InternalError();
} catch (InvocationTargetException e) {
throw new InternalError();
return dbb;
private static void initDBBRConstructor() {
new Class[] { int.class,
FileDescriptor.class,
Runnable.class });
} catch (ClassNotFoundException x) {
throw new InternalError();
} catch (NoSuchMethodException x) {
throw new InternalError();
} catch (IllegalArgumentException x) {
throw new InternalError();
} catch (ClassCastException x) {
throw new InternalError();
return null;
fd,
unmapper });
} catch (InstantiationException e) {
throw new InternalError();
} catch (IllegalAccessException e) {
throw new InternalError();
} catch (InvocationTargetException e) {
throw new InternalError();
return dbb;
private static boolean loaded = false;
static void load() {
synchronized (Util.class) {
if (loaded)
loaded = true;