src/java.management/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java

Print this page
rev 14181 : 8147553: Remove sun.misc.ManagedLocalsThread from java.management
Reviewed-by:

*** 28,52 **** import java.io.IOException; import java.io.InterruptedIOException; import com.sun.jmx.remote.util.ClassLogger; import com.sun.jmx.remote.util.EnvHelp; - import sun.misc.ManagedLocalsThread; public abstract class ClientCommunicatorAdmin { private static volatile long threadNo = 1; public ClientCommunicatorAdmin(long period) { this.period = period; if (period > 0) { checker = new Checker(); ! Thread t = new ManagedLocalsThread( checker, ! "JMX client heartbeat " + (++threadNo) ! ); t.setDaemon(true); t.start(); } else checker = null; --- 28,52 ---- import java.io.IOException; import java.io.InterruptedIOException; import com.sun.jmx.remote.util.ClassLogger; import com.sun.jmx.remote.util.EnvHelp; public abstract class ClientCommunicatorAdmin { private static volatile long threadNo = 1; public ClientCommunicatorAdmin(long period) { this.period = period; if (period > 0) { checker = new Checker(); ! Thread t = new Thread(null, checker, ! "JMX client heartbeat " + (++threadNo), ! 0, ! false); t.setDaemon(true); t.start(); } else checker = null;