Java 9+ doesn't allow using the exposed cleanup method, but added a new method on Unsafe to do it. So have to detect java version and use the appropriate strategy.
3.5 KiB
3.5 KiB