< prev index next >
src/java.desktop/share/classes/sun/java2d/loops/GraphicsPrimitive.java
Print this page
*** 46,56 ****
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.security.AccessController;
import java.security.PrivilegedAction;
- import sun.misc.ManagedLocalsThread;
import sun.security.action.GetPropertyAction;
/**
* defines interface for primitives which can be placed into
* the graphic component manager framework
--- 46,55 ----
*** 418,429 ****
public static class TraceReporter implements Runnable {
public static void setShutdownHook() {
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
TraceReporter t = new TraceReporter();
! Thread thread = new ManagedLocalsThread(
! ThreadGroupUtils.getRootThreadGroup(), t);
thread.setContextClassLoader(null);
Runtime.getRuntime().addShutdownHook(thread);
return null;
});
}
--- 417,429 ----
public static class TraceReporter implements Runnable {
public static void setShutdownHook() {
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
TraceReporter t = new TraceReporter();
! Thread thread = new Thread(
! ThreadGroupUtils.getRootThreadGroup(), t,
! "TraceReporter", 0, false);
thread.setContextClassLoader(null);
Runtime.getRuntime().addShutdownHook(thread);
return null;
});
}
< prev index next >