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

[macos] application creates unlimited number of CVDisplayLink threads

XMLWordPrintable

    • other
    • os_x

      I have a long running application that accumulates an apparently unlimited number of CVDisplayLink threads. I do not have a test case.

      Enclosed is a process sampling. I can provide a Metal trace, but the file is too large to attach.

      The application was run on an M2 system and macOS 13.6.

      The problem could be caused by threading issues. The startDisplayLink and stopDisplayLink methods of the Objective-C class MTLLayer are invoked on multiple threads. They are invoked on the AppKit main thread from screen sleep notifications and blitTexture. They are invoked on the EDT from MTLLayer.validate. They are invoked on the Queue Flusher thread from MTLRenderQueue.flushBuffer.

            jdv Jayathirth D V
            alans Alan Snyder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: