-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b28
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056501 | emb-9 | Alexandr Scherbatiy | P2 | Resolved | Fixed | master |
An evalution of OOME situation with NetBeans IDE has shown that AquaTabbedPaneContrastUI instance is holding 425MB with 15762 elements in htmlViews field.
See also the following comments in NB bug:
https://netbeans.org/bugzilla/show_bug.cgi?id=230493#c6
This is a bug in Aqua L&F implementation in JDK 1.7 - when HTML is being used
for JTabbedPane tab titles each update of tab titles creates a new instance of
BasicHTML.Renderer class without discarding previous instances for the same
tab.
See AquaTabbedPaneCopyFromBasicUI.updateHtmlViews(int) - it was copied from
BasicTabbedPaneUI but is missing htmlViews.removeElementAt(index) call from
line 3528
It could be a serious performance problem in NetBeans as we use HTML for tab
titles in Output window.
See also the following comments in NB bug:
https://netbeans.org/bugzilla/show_bug.cgi?id=230493#c6
This is a bug in Aqua L&F implementation in JDK 1.7 - when HTML is being used
for JTabbedPane tab titles each update of tab titles creates a new instance of
BasicHTML.Renderer class without discarding previous instances for the same
tab.
See AquaTabbedPaneCopyFromBasicUI.updateHtmlViews(int) - it was copied from
BasicTabbedPaneUI but is missing htmlViews.removeElementAt(index) call from
line 3528
It could be a serious performance problem in NetBeans as we use HTML for tab
titles in Output window.
- backported by
-
JDK-8056501 Aqua LaF: memory leak when HTML is used for JTabbedPane tab titles
-
- Resolved
-