Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8078192

Path2D storage trimming

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8, 9
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
      2d

      Backports

        Description

        There are no public method to trim the arrays on an existing path object to just the needed size for long term storage. This would be useful when an object will be kept in a static state for a long time and the added storage that was created for potential growth will never be used.

        Workaround - the copy constructors do trim arrays so a saved path reference could be trimmed by copying it or cloning it and then saving that result, but it should be possible to do the same thing "in place".

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                lbourges Laurent Bourgès
                Reporter:
                flar Jim Graham
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: