JDK-8147545 : Remove sun.misc.ManagedLocalsThread from java.prefs
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-01-18
  • Updated: 2016-03-25
  • Resolved: 2016-01-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b103Fixed
Description
JDK-8056152 added a new constructor to java.lang.Thread to constructing Threads that do not
inherit inheritable thread-local initial values. All usages of sun.misc.ManagedLocalsThread in
the base module were also replaced with this new constructor. Given there is now a supported API
for creating such threads, other areas of the JDK should be updated to use it, where applicable. If all
usages are replaced, then sun.misc.ManagedLocalsThread can be removed. 

/jdk/src/java.prefs$ find . -name "*.java" -exec grep ManagedLocalsThread {} \; -print
import sun.misc.ManagedLocalsThread;
    private static class EventDispatchThread extends ManagedLocalsThread {
./share/classes/java/util/prefs/AbstractPreferences.java
import sun.misc.ManagedLocalsThread;
            Thread flushThread = new ManagedLocalsThread() {
./macosx/classes/java/util/prefs/MacOSXPreferencesFile.java
import sun.misc.ManagedLocalsThread;
                Runtime.getRuntime().addShutdownHook(new ManagedLocalsThread() {
./unix/classes/java/util/prefs/FileSystemPreferences.java

Comments
Review thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-January/038226.html
22-01-2016