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

Replace recursion to iterate over ImageObservers in ImageWatched with a non-recursive code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 9
    • client-libs
    • 2d
    • generic
    • generic

      During evaluating possible fixes for cr6887286 (and cr7104147), we realized that the curent implimentation is not ideal. On principle, we should never use recursion to iterate over a list whose size is unbound (and under the influence of the Java application).

      This CR is to track the reimplementation of this code. Our main goal is to remove recursion from this code to reduce the risk of a SOFE. Secondary goals include making the code easier to understand and maintain. A very important requirement of any change is that it is thread safe.

            jdv Jayathirth D V
            dbuck David Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: