bell-sw / Liberica

Free and 100% open source Progressive Java Runtime for modern Java™ deployments supported by a leading OpenJDK contributor
https://bell-sw.com/pages/libericajdk/
GNU General Public License v2.0
318 stars 29 forks source link

JDK crushed during unit test under IDEA #132

Open magicprinc opened 1 year ago

magicprinc commented 1 year ago

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)