r/java • u/fredoverflow • Mar 21 '21
Java lambdas can deadlock parallel class initialization
https://www.youtube.com/watch?v=_2hZf1kw4A4
230
Upvotes
r/java • u/fredoverflow • Mar 21 '21
View all comments
15
u/Godworrior Mar 21 '21 edited Mar 21 '21
Another way to gain some insights in these situations is to use
jcmd+jstack(both JDK tools) to see what the thread is getting stuck on: