changeset 1426:dba7dc47b78e

6814140: deadlock due to synchronized demandLogger() code that locks ServerLogManager Summary: Making demandLogger() non-synchronized resolves the deadlock. Reviewed-by: dcubed
author poonam
date Wed, 22 Jul 2009 07:49:57 -0700
parents 29b076bfeafd
children 645c1d0b9db9
files src/share/classes/java/util/logging/LogManager.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/logging/LogManager.java	Wed Jul 22 16:41:14 2009 +0800
+++ b/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);