This is the clean backport of "JDK-8389515: Memory leak in dshowwrapper - 
decoded buffers delivered by CSink are never unmapped" to jfx25u.

I'm backporting this because jfx25u is affected with the memory leak problem 
and for parity with Oracle.

The problem is reproduced before the fix and gone after the fix:

Java:   24.0.2 (OpenJDK 64-Bit Server VM)
JavaFX: 25.0.4-internal (runtime 25.0.4-internal+0-2026-08-06-143023)
460.5 MiB
3163.6 MiB
5849.0 MiB
8546.1 MiB
11266.2 MiB
13952.5 MiB
16649.8 MiB
19347.8 MiB
22060.6 MiB
24755.5 MiB
27448.6 MiB

Java:   24.0.2 (OpenJDK 64-Bit Server VM)
JavaFX: 25.0.4-internal (runtime 25.0.4-internal+0-2026-08-06-144848)
437.6 MiB
470.6 MiB
450.4 MiB
451.7 MiB
451.6 MiB
455.6 MiB
458.7 MiB
461.4 MiB
458.2 MiB
458.6 MiB
461.9 MiB

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Backport 7533c6156a76597bd39a8f935585796bbfa19ef6

Changes: https://git.openjdk.org/jfx25u/pull/63/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx25u&pr=63&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8389515
  Stats: 71 lines in 3 files changed: 53 ins; 9 del; 9 mod
  Patch: https://git.openjdk.org/jfx25u/pull/63.diff
  Fetch: git fetch https://git.openjdk.org/jfx25u.git pull/63/head:pull/63

PR: https://git.openjdk.org/jfx25u/pull/63

Reply via email to