Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096348

Stackoverflow on JavaFX Application Thread

    XMLWordPrintable

Details

    Description

      On Android there are issues with the default stack size that make it desirable to provide a way to change the default. This is a port of a change to lens in RT-36811

      diff -r a88b5721a3be modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleApplication.java
      --- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleApplication.java Fri Jun 13 11:20:51 2014 -0400
      +++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleApplication.java Fri Jun 13 14:09:28 2014 -0400
      @@ -114,7 +114,14 @@
           @Override
           protected void runLoop(Runnable launchable) {
               runnableProcessor.invokeLater(launchable);
      - Thread t = new Thread(runnableProcessor);
      + long stackSize = AccessController.doPrivileged(
      + (PrivilegedAction<Long>)
      + () -> Long.getLong("glass.monocle.stackSize", 0));
      + Thread t = new Thread(
      + new ThreadGroup("Event"),
      + runnableProcessor,
      + "Event Thread",
      + stackSize);
               setEventThread(t);
               t.start();
               shutdownHookThread = new Thread("Monocle shutdown hook") {

      Attachments

        Issue Links

          Activity

            People

              ddhill David Hill (Inactive)
              ddhill David Hill (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: