< prev index next >

src/java.base/share/classes/java/lang/ProcessHandleImpl.java

Print this page
@@ -87,10 +87,11 @@
              AccessController.doPrivileged((PrivilegedAction<Executor>) () -> {
                  // Initialize ThreadLocalRandom now to avoid using the smaller stack
                  // of the processReaper threads.
                  ThreadLocalRandom.current();
  
+                 @SuppressWarnings("deprecation")
                  ThreadGroup tg = Thread.currentThread().getThreadGroup();
                  while (tg.getParent() != null) tg = tg.getParent();
                  ThreadGroup systemThreadGroup = tg;
  
                  // For a debug build, the stack shadow zone is larger;
< prev index next >