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

Need mechanism for PG nodes to know when they are no longer part of a scene graph

    XMLWordPrintable

    Details

      Description

      Some PG nodes contain handles to non-heap resources, such as GPU textures, which we would want to aggressively reclaim when the node is no longer part of a scene graph. Unfortunately, there is no mechanism to report this state change to them so that they can release their resources so we must rely on a combination of GC, Ref queues, and sometimes finalization to reclaim the resources. Lazy reclamation of some of these resources can result in exceptions when garbage collection gets behind and we run out of these limited resources.

        Attachments

        1. rt.diff
          4 kB
        2. rt-closed.diff
          0.9 kB

          Issue Links

            Activity

              People

              Assignee:
              msladecek Martin Sládeček
              Reporter:
              flar Jim Graham
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: