Merge "Issue #1744 actually fix deadlock this time" into omaha_13.3.1

Former-commit-id: 1754861897 [formerly 7eafcb1e677fafadc039a5106f296dbee1245136]
Former-commit-id: c50e1cbe1c
This commit is contained in:
Richard Peter 2013-03-01 10:50:33 -06:00 committed by Gerrit Code Review
commit 6fd7af5362

View file

@ -106,7 +106,7 @@ public class SerializationCache {
// and will block other threads, meanwhile deeper inside create()
// it needs to obtain a lock on the classloader which another thread
// might already have
synchronized (SerializationCache.class) {
synchronized (SerializationCache.class.getClassLoader()) {
bm = generator.create();
}
generator.setBean(null);