JDK-6616323 : consider benefits of replacing a componen array with other collection from the awt.Container class
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: generic
  • Submitted: 2007-10-12
  • Updated: 2020-01-13
  • Resolved: 2011-05-18
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 6 JDK 7
6u10Fixed 7 b36Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
java.awt.Container class stores all children in an array of Components:
1) its initial size is 0;
2) on changing the hierarchy of components (add/remove) it addresses the Arrays.copy(args) method;

Comments
EVALUATION There is no visible improvements with startup2 and startup3 but it does observed with swingmark if Container use ArrayList instead of plaing array. C:\ad153231\refworkload_1>efworkload_1\results\swingmark\comp_array_original_1 C ============================================================================ esults\swingmark Benchmark Samples Mean Stdev Ge omean Weight swingmark 30 907.52 3.77 ============================================================================ esults\swingmark Benchmark Samples Mean Stdev %Diff P Significant swingmark 30 881.36 4.33 -2.88 0.000 Yes ============================================================================ * - Not Significant: The %Diff for the mean could be noise. If there is an actual difference, more samples would be needed to detect it.
25-01-2008

SUGGESTED FIX http://spbweb.russia.sun.com/~ad153231/startup/webrev.6616323.replace_array/
27-12-2007

EVALUATION List collection might be applied. Performance testing should be accomplished to choose better collection type.
27-12-2007