required Java version
Java 21
required VM option
--add-opens=jdk.unsupported/sun.misc=ALL-UNNAMED
SwissMap<Integer, Integer> map = new SwissMap<>(16);
map.put(1, 1);
map.get(1);
The following vm options can be added to improve the performance of the Swiss map.
--add-modules=jdk.incubator.vector --enable-preview