New posts

This commit is contained in:
2026-11-06 21:43:48 +05:30
parent ecceaa8b32
commit f7b6c1efca
33 changed files with 1258 additions and 0 deletions
+11
View File
@@ -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();
}