src/java.base/share/classes/sun/security/provider/SeedGenerator.java

Print this page

        

*** 73,83 **** import java.net.*; import java.nio.file.DirectoryStream; import java.nio.file.Files; import java.nio.file.Path; import java.util.Random; - import sun.misc.ManagedLocalsThread; import sun.security.util.Debug; abstract class SeedGenerator { // Static instance is created at link time --- 73,82 ----
*** 303,315 **** while ((parent = group.getParent()) != null) { group = parent; } finalsg[0] = new ThreadGroup (group, "SeedGenerator ThreadGroup"); ! Thread newT = new ManagedLocalsThread(finalsg[0], ThreadedSeedGenerator.this, ! "SeedGenerator Thread"); newT.setPriority(Thread.MIN_PRIORITY); newT.setDaemon(true); return newT; } }); --- 302,316 ---- while ((parent = group.getParent()) != null) { group = parent; } finalsg[0] = new ThreadGroup (group, "SeedGenerator ThreadGroup"); ! Thread newT = new Thread(finalsg[0], ThreadedSeedGenerator.this, ! "SeedGenerator Thread", ! 0, ! false); newT.setPriority(Thread.MIN_PRIORITY); newT.setDaemon(true); return newT; } });
*** 340,351 **** (counter < 64000) && (quanta < 6); quanta++) { // Start some noisy threads try { BogusThread bt = new BogusThread(); ! Thread t = new ManagedLocalsThread ! (seedGroup, bt, "SeedGenerator Thread"); t.start(); } catch (Exception e) { throw new InternalError("internal error: " + "SeedGenerator thread creation error.", e); } --- 341,352 ---- (counter < 64000) && (quanta < 6); quanta++) { // Start some noisy threads try { BogusThread bt = new BogusThread(); ! Thread t = new Thread ! (seedGroup, bt, "SeedGenerator Thread", 0, false); t.start(); } catch (Exception e) { throw new InternalError("internal error: " + "SeedGenerator thread creation error.", e); }