6814140: deadlock due to synchronized demandLogger() code that locks ServerLogManager
Summary: Making demandLogger() non-synchronized resolves the deadlock.
Reviewed-by: dcubed
--- a/jdk/src/share/classes/java/util/logging/LogManager.java Wed Jul 22 16:41:14 2009 +0800
+++ b/jdk/src/share/classes/java/util/logging/LogManager.java Wed Jul 22 07:49:57 2009 -0700
@@ -338,7 +338,7 @@
// 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);