On Thu, 26 Feb 2026 01:12:34 GMT, Sergey Bylokhov <[email protected]> wrote:

> 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](https://bugs.openjdk.org/browse/JDK-8376233)
> 
> The fix adds dispatch_release(semaphore) after dispatch_semaphore_wait in 
> both functions, paired with dispatch_retain before the async block to prevent 
> use-after-free on the timeout path.

Marked as reviewed by dmarkov (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/29927#pullrequestreview-3962524503

Reply via email to