New posts
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/** A fixed-size off-heap array of longs. Two implementations: Unsafe (before) and java.lang.foreign (after). */
|
||||
public interface OffHeapLongs extends AutoCloseable {
|
||||
int length();
|
||||
long get(int i);
|
||||
void set(int i, long v);
|
||||
boolean cas(int i, long expect, long update);
|
||||
long getAndAdd(int i, long delta);
|
||||
void clear();
|
||||
void copyFrom(OffHeapLongs other);
|
||||
@Override void close();
|
||||
}
|
||||
Reference in New Issue
Block a user