< prev index next >

src/java.desktop/share/classes/sun/applet/AppletPanel.java

Print this page

        

@@ -42,11 +42,10 @@
 import sun.awt.AWTAccessor;
 import sun.awt.AppContext;
 import sun.awt.EmbeddedFrame;
 import sun.awt.SunToolkit;
 import sun.awt.util.PerformanceLogger;
-import sun.misc.ManagedLocalsThread;
 import sun.security.util.SecurityConstants;
 
 /**
  * Applet panel class. The panel manages and manipulates the
  * applet as it is being loaded. It forks a separate thread in a new

@@ -164,11 +163,11 @@
         else
             loader.setCodebaseLookup(true);
 
 
         ThreadGroup appletGroup = loader.getThreadGroup();
-        handler = new ManagedLocalsThread(appletGroup, this, "thread " + nm);
+        handler = new Thread(appletGroup, this, "thread " + nm, 0, false);
         // set the context class loader for this thread
         AccessController.doPrivileged(new PrivilegedAction<Object>() {
                 @Override
                 public Object run() {
                     handler.setContextClassLoader(loader);

@@ -394,13 +393,12 @@
                       // So that we don't have to worry about
                       // concurrency issues, the main applet thread waits
                       // until the loader thread terminates.
                       // (one way or another).
                       if (loaderThread == null) {
-                          // REMIND: do we want a name?
-                          //System.out.println("------------------- loading applet");
-                          setLoaderThread(new ManagedLocalsThread(this));
+                          setLoaderThread(new Thread(null, this,
+                                          "AppletLoader", 0, false));
                           loaderThread.start();
                           // we get to go to sleep while this runs
                           loaderThread.join();
                           setLoaderThread(null);
                       } else {
< prev index next >