8153158: Remove sun.misc.ManagedLocalsThread from java.logging
authorchegar
Mon, 18 Apr 2016 20:58:30 +0100
changeset 37520 f308aaf25d07
parent 37519 43cd7a5e06b5
child 37521 b6e0f285c998
child 37534 acfd338f07e7
8153158: Remove sun.misc.ManagedLocalsThread from java.logging Reviewed-by: dfuchs, redestad
jdk/src/java.logging/share/classes/java/util/logging/LogManager.java
jdk/src/java.logging/share/classes/module-info.java
--- a/jdk/src/java.logging/share/classes/java/util/logging/LogManager.java	Mon Apr 18 20:58:21 2016 +0100
+++ b/jdk/src/java.logging/share/classes/java/util/logging/LogManager.java	Mon Apr 18 20:58:30 2016 +0100
@@ -42,7 +42,6 @@
 import java.util.stream.Stream;
 import jdk.internal.misc.JavaAWTAccess;
 import jdk.internal.misc.SharedSecrets;
-import sun.misc.ManagedLocalsThread;
 import sun.util.logging.internal.LoggingProviderImpl;
 
 /**
@@ -254,9 +253,10 @@
 
     // This private class is used as a shutdown hook.
     // It does a "reset" to close all open handlers.
-    private class Cleaner extends ManagedLocalsThread {
+    private class Cleaner extends Thread {
 
         private Cleaner() {
+            super(null, null, "Logging-Cleaner", 0, false);
             /* Set context class loader to null in order to avoid
              * keeping a strong reference to an application classloader.
              */
--- a/jdk/src/java.logging/share/classes/module-info.java	Mon Apr 18 20:58:21 2016 +0100
+++ b/jdk/src/java.logging/share/classes/module-info.java	Mon Apr 18 20:58:30 2016 +0100
@@ -24,8 +24,6 @@
  */
 
 module java.logging {
-    // 8153158
-    requires jdk.unsupported;
     exports java.util.logging;
     provides jdk.internal.logger.DefaultLoggerFinder with
         sun.util.logging.internal.LoggingProviderImpl;