JDK-8129629 : SwingSet2 text demo very sluggish on JRE 9
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.accessibility
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-06-23
  • Updated: 2016-06-02
  • Resolved: 2016-06-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
With a current 9 build (as of June 23, 2015) start SwingSet2.  With JAWS running activate the Text demo (6th button).  Click on the JEditorPane HTML demo tab.  JAWS takes a very long time to respond.  Tab down into the text area.  JAWS again is very slow to respond.  There is no problem with the latest 8u build so this probably deteriorated sometime during the development of 9.
Comments
Semyon, If you can think of it please ping me when the fix for JDK-8098835 is pushed and I will reverify.
01-07-2015

Duplicate of JDK-8098835
01-07-2015

yes. this patch is going into https://bugs.openjdk.java.net/browse/JDK-8098835
01-07-2015

Hi Semyon, Is that fix going into another bug? Can I close this as a duplicate of that?
01-07-2015

That fixed it.
01-07-2015

From Semyon Sadetsky: Hi Pete, I heard that you got performance issue in b68 connected to text components. It can be caused by https://bugs.openjdk.java.net/browse/JDK-8098835. The next patch can help: --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java 2015-06-16 20:20:42.678311800 +0300 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java 2015-06-16 20:20:42.136257600 +0300 @@ -971,7 +971,7 @@ ((AbstractDocument)doc).readLock(); } try { - d.width = (int) rootView.getMinimumSpan(View.X_AXIS) + i.left + i.right; + d.width = (int) rootView.getMinimumSpan(View.X_AXIS) + i.left + i.right + caretMargin; d.height = (int) rootView.getMinimumSpan(View.Y_AXIS) + i.top + i.bottom; } finally { if (doc instanceof AbstractDocument) { @@ -996,7 +996,7 @@ } try { d.width = (int) Math.min((long) rootView.getMaximumSpan(View.X_AXIS) + - (long) i.left + (long) i.right, Integer.MAX_VALUE); + (long) i.left + (long) i.right + caretMargin, Integer.MAX_VALUE); d.height = (int) Math.min((long) rootView.getMaximumSpan(View.Y_AXIS) + (long) i.top + (long) i.bottom, Integer.MAX_VALUE); } finally { @@ -1027,7 +1027,7 @@ Insets insets = editor.getInsets(); alloc.x += insets.left; alloc.y += insets.top; - alloc.width -= insets.left + insets.right; + alloc.width -= insets.left + insets.right + caretMargin; alloc.height -= insets.top + insets.bottom; return alloc; }
01-07-2015

Possible causes: JDK-8078483 Apparent endless loop running JEditorPanePaintTest JDK-8071306 GUI perfomance are very slow compared java 1.6.0_45 JDK-8072775 Tremendous memory usage by JTextArea JDK-8078483 Apparent endless loop running JEditorPanePaintTest JDK-8079677 fix to JDK-8078534 removed part of fix to JDK-8076220 JDK-8079640 GroupLayout incorrect layout with large JTextArea
24-06-2015