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

I'm backporting this because jfx26u is affected with the memory leak problem.

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

Java:   25 (OpenJDK 64-Bit Server VM)
JavaFX: 26.0.2-internal (runtime 26.0.2-internal+0-2026-08-06-132511)
461.0 MiB
3170.6 MiB
5871.9 MiB
8612.1 MiB
11298.5 MiB
13996.8 MiB
16709.5 MiB
19404.5 MiB
22103.1 MiB
24798.0 MiB
27497.9 MiB

Java:   25 (OpenJDK 64-Bit Server VM)
JavaFX: 26.0.2-internal (runtime 26.0.2-internal+0-2026-08-06-133553)
448.3 MiB
472.0 MiB
476.3 MiB
507.7 MiB
509.4 MiB
509.2 MiB
519.9 MiB
520.2 MiB
523.2 MiB
519.2 MiB
519.0 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/jfx26u/pull/33/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx26u&pr=33&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/jfx26u/pull/33.diff
  Fetch: git fetch https://git.openjdk.org/jfx26u.git pull/33/head:pull/33

PR: https://git.openjdk.org/jfx26u/pull/33

Reply via email to