-
Bug
-
Resolution: Fixed
-
P3
-
8u40
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") {
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") {
- relates to
-
JDK-8098249 [Android] Stackoverflow on JavaFX Application Thread
- Resolved