Hi, Manajit.
The code in the test and the code in the JButton does not have any recursion and use only loops. All buttons itself are stored in the heap not on the stack. Can you please clarify, where in our code the default size of the stack is too small?

On 04.08.2017 4:40, Manajit Halder wrote:
Hi All,

Kindly review the fix for JDK10.

Bug:
https://bugs.openjdk.java.net/browse/JDK-8165863

Webrev:
http://cr.openjdk.java.net/~mhalder/8165863/webrev.00/

Root cause:
The problem was due to default JVM stack size, which was not enough for the creation of 10001 JButtons.

Fix:
Increased the JVM stack size to 2048k for this test case using JVM flag -Xss.

Regards,
Manajit



--
Best regards, Sergey.

Reply via email to