I have changed JDK to Liberica 20.0.1 and instead of a crash I have received NullPointerException!
It looks like ConcurrentHashMap.values().iterator().next() CAN return null.
After I have added check for this possibility, no more NPE and crashes yet (on JDK 17 too)
Windows 10. Latest IDEA. Same environment and tests, nothing special, but suddenly a crash... twice hs_err_pid10888.log hs_err_pid14376.log
I have changed JDK to Liberica 20.0.1 and instead of a crash I have received NullPointerException!
It looks like ConcurrentHashMap.values().iterator().next() CAN return null. After I have added check for this possibility, no more NPE and crashes yet (on JDK 17 too)