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

replace IndexColorModel.finalize() with Disposer mechanism

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Introduced In Version:
    • CPU:
      generic
    • OS:
      solaris_9

      Description

      As mentioned in 6299405, we still have a non-empty finalize() method in
      IndexColorModel. It would be fairly trivial to remove this method and replace it
      with a more prompt mechanism, specifically the Java2D Disposer thread. This may
      help reduce overhead in creating and disposing small indexed images.

      Another minor point: ColorModel has an empty finalize() method. I'm not sure why
      we can't just remove that method altogether (it would not be considered an incompatible
      spec change since it's just overriding an existing method on Object).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              campbell Christopher Campbell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: