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

Prism/es2 DrawableInfo is never freed (leak)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx24
    • jfx23
    • javafx
    • None
    • b13

      The platform implementations of GLDrawable (X11GLDrawable, WinGLDrawable, etc) calls nCreateDrawable which allocates a DrawableInfo in native code with malloc but never frees it.

      It's best seen on a sample code (attached) that creates and replaces Scenes on a Stage (which causes the allocation multiple times).

      Can be verified with valgrind:

      valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all --suppressions=java.supp --log-file=valgrind.log java @<path>/jfx/build/run.args TestScenes.java




            tsayao Thiago Sayao
            tsayao Thiago Sayao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: