Skip to main content

Adam Bien: Endless Loops In Unsychronized WeakHashMap

Endless Loops In Unsychronized WeakHashMap: Unsynchronized access to java.util.WeakHashMap may cause …an endless loop. See method java.util.WeakHashMap#get: ... Although it seems unlikely, it actually happens. One day we found a majority of worker threads stuck with the following stacktrace: ...

Community: OpenJDK