提交 6940a064 编写于 作者: P poonam

6814140: deadlock due to synchronized demandLogger() code that locks ServerLogManager

Summary: Making demandLogger() non-synchronized resolves the deadlock.
Reviewed-by: dcubed
上级 d5341073
......@@ -338,7 +338,7 @@ public class LogManager {
// already been created with the given name it is returned.
// Otherwise a new logger instance is created and registered
// in the LogManager global namespace.
synchronized Logger demandLogger(String name) {
Logger demandLogger(String name) {
Logger result = getLogger(name);
if (result == null) {
result = new Logger(name, null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册