spring-projects / spring-loaded

Java agent that enables class reloading in a running JVM
Apache License 2.0
2.72k stars 515 forks source link

Resolving Issue #194 by swapping out a WeakHashMap for a ConcurrentWeakIdentityHashMap #202

Closed davydotcom closed 7 years ago

davydotcom commented 7 years ago

The WeakHashMap is not thread safe and is being used in a way that is not supported. To address I have added an implementation of a ConcurrentWeakIdentityHashmap from a third party @zhanhb and this seems to resolve the lock up issues.

davydotcom commented 7 years ago

im going to resubmit this, accidentally pushed some build.gradle changes to test it