JDK-7184798 : Revisit caching code in SunLayoutEngine.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2012-07-17
  • Updated: 2018-09-05
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
In bug 7183251 I found that we are caching in a map SunLayoutEngine instances
which really just wrap a copy of the key used to look them up.
Then SLE just calls a static native method.
If some native state/object were caching expensive state it might make
sense but setting up those native objects seems to be cheap.
It all seems like overhead. I think we can dispense with creating the map,
the keys and instances of SunLayoutEngine and just call the static native method.

Comments
keeping nicetohave label, and issue might be fixed in 9 later in positive case of time resources available
12-07-2016