< prev index next >

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

Print this page

        

*** 42,52 **** 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 --- 42,51 ----
*** 164,174 **** else loader.setCodebaseLookup(true); ThreadGroup appletGroup = loader.getThreadGroup(); ! handler = new ManagedLocalsThread(appletGroup, this, "thread " + nm); // set the context class loader for this thread AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { handler.setContextClassLoader(loader); --- 163,173 ---- else loader.setCodebaseLookup(true); ThreadGroup appletGroup = loader.getThreadGroup(); ! 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,406 **** // 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)); loaderThread.start(); // we get to go to sleep while this runs loaderThread.join(); setLoaderThread(null); } else { --- 393,404 ---- // 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) { ! 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 >