src/share/classes/java/util/logging/LogManager.java
Print this page
@@ -196,10 +196,12 @@
manager.addLogger(manager.rootLogger);
manager.systemContext.addLocalLogger(manager.rootLogger);
// Adding the global Logger. Doing so in the Logger.<clinit>
// would deadlock with the LogManager.<clinit>.
+ // Do not call Logger.getGlobal() here as this might trigger
+ // the deadlock too.
Logger.global.setLogManager(manager);
manager.addLogger(Logger.global);
// We don't call readConfiguration() here, as we may be running
// very early in the JVM startup sequence. Instead readConfiguration