JDK-8031696 : [macosx] TwentyThousandTest test failed with OOM
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-01-14
  • Updated: 2016-04-19
  • Resolved: 2014-11-28
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.
8u40Fixed 9 b44Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Tested on latest 9/client and jdk 8 b123 on macosx.

The problem goes away if i revert back 8022398(possible related to 8021253 also)
(note that sometimes test hangs it is another bug 8031694) 
Looks like the bug was introduced in jdk 8 b110
src/macosx/classes/com/apple/laf/AquaFileChooserUI.java @@ -1300,7 +1300,8 @@ filters = (FileFilter[]) e.getNewValue(); fireContentsChanged(this, -1, -1); } else if (prop == JFileChooser.FILE_FILTER_CHANGED_PROPERTY) { - fireContentsChanged(this, -1, -1); + //fireContentsChanged(this, -1, -1); + setSelectedItem(e.getNewValue()); } }

Still does not work on the latest jdk 8/9. The problem is that we cache the list of files in AquaL&F, and properly clear it, but looks like after the fix of JDK-8022398 we have bunch of notifications, which cause of lot of cache recreation.

It works on latest 9/client and jdk8 b129 x64 on Windows 7.