[macOS] Missing dispatch_release for semaphores in CDesktopPeer

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 8u481, 11.0.30-oracle, 17.0.18-oracle, 21.0.10-oracle, 25.0.2, 26, 27
    • Component/s: client-libs
    • generic
    • os_x

      CDesktopPeer.m creates dispatch semaphores via dispatch_semaphore_create in both _lsOpenURI and _lsOpenFile but never releases them. Since the JDK is compiled without ARC, each call to Desktop.open(), browse(), mail(), edit(), or print() leaks around 80 bytes.

      The issue is similar to JDK-8376233

      The fix adds dispatch_release(semaphore) after dispatch_semaphore_wait in both functions.

            Assignee:
            Sergey Bylokhov
            Reporter:
            Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: