(long size, int memoryTag)
| 123 | } |
| 124 | |
| 125 | public static long calloc(long size, int memoryTag) { |
| 126 | long ptr = malloc(size, memoryTag); |
| 127 | Vect.memset(ptr, size, 0); |
| 128 | return ptr; |
| 129 | } |
| 130 | |
| 131 | public static boolean cas(Object o, long offset, long expected, long value) { |
| 132 | return UNSAFE.compareAndSwapLong(o, offset, expected, value); |