src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java
Print this page
rev 13541 : 8147545: Remove sun.misc.ManagedLocalsThread from java.prefs
Summary: Replace ManagedLocalsThread with Thread(null,null,threadName,0,false)
Reviewed-by: XXX
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -29,11 +29,10 @@
import java.util.HashSet;
import java.util.Iterator;
import java.util.Timer;
import java.util.TimerTask;
import java.lang.ref.WeakReference;
-import sun.misc.ManagedLocalsThread;
/*
MacOSXPreferencesFile synchronization:
@@ -342,11 +341,12 @@
// Return the timer used for flush and sync, creating it if necessary.
private static synchronized Timer timer()
{
if (timer == null) {
timer = new Timer(true); // daemon
- Thread flushThread = new ManagedLocalsThread() {
+ Thread flushThread =
+ new Thread(null, null, "Flush Thread", 0, false) {
@Override
public void run() {
flushWorld();
}
};