Fix compiler error

This commit is contained in:
Andrea Cavalli 2023-05-10 16:29:55 +02:00
parent 17849d6b58
commit 99a0078321
2 changed files with 5 additions and 1 deletions

View File

@ -163,6 +163,9 @@
<excludes>
<exclude>module-info.java</exclude>
</excludes>
<compilerArgs>
<arg>--add-modules=jdk.unsupported</arg>
</compilerArgs>
</configuration>
</execution>
</executions>

View File

@ -14,6 +14,7 @@ import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.concurrent.atomic.AtomicInteger;
import org.jctools.maps.ConcurrentAutoTable;
import org.jctools.util.UnsafeAccess;
import sun.misc.Unsafe;
/**
@ -42,7 +43,7 @@ import sun.misc.Unsafe;
public class NonBlockingSetInt extends AbstractSet<Integer> implements Serializable {
private static final long serialVersionUID = 1234123412341234123L;
private static final Unsafe _unsafe = Unsafe.getUnsafe();
private static final Unsafe _unsafe = UnsafeAccess.UNSAFE;
// --- Bits to allow atomic update of the NBSI
private static final long _nbsi_offset;