< prev index next >
src/java.desktop/share/classes/com/sun/media/sound/JSSecurityManager.java
Print this page
*** 23,34 ****
* questions.
*/
package com.sun.media.sound;
- import sun.misc.ManagedLocalsThread;
-
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
--- 23,32 ----
*** 143,158 ****
/** Create a Thread in the current ThreadGroup.
*/
static Thread createThread(final Runnable runnable,
final String threadName,
final boolean isDaemon, final int priority,
! final boolean doStart) {
! Thread thread = new ManagedLocalsThread(runnable);
- if (threadName != null) {
- thread.setName(threadName);
- }
thread.setDaemon(isDaemon);
if (priority >= 0) {
thread.setPriority(priority);
}
if (doStart) {
--- 141,155 ----
/** Create a Thread in the current ThreadGroup.
*/
static Thread createThread(final Runnable runnable,
final String threadName,
final boolean isDaemon, final int priority,
! final boolean doStart)
! {
! String name = (threadName != null) ? threadName : "JSSM Thread";
! Thread thread = new Thread(null, runnable, threadName, 0, false);
thread.setDaemon(isDaemon);
if (priority >= 0) {
thread.setPriority(priority);
}
if (doStart) {
< prev index next >