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

replace IndexColorModel.finalize() with Disposer mechanism

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 5.0
    • client-libs
    • None
    • 2d
    • generic
    • solaris_9

      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).

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: