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

I'm backporting this because jfx21u 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:   21.0.7 (OpenJDK 64-Bit Server VM)
JavaFX: 21.0.12-internal (runtime 21.0.12-internal+0-2026-08-07-104216)
412.6 MiB
3142.7 MiB
5860.3 MiB
8569.5 MiB
11273.6 MiB
13967.5 MiB
16674.7 MiB
19371.8 MiB
22071.2 MiB


Java:   21.0.7 (OpenJDK 64-Bit Server VM)
JavaFX: 21.0.12-internal (runtime 21.0.12-internal+0-2026-08-07-105659)
413.2 MiB
450.0 MiB
442.8 MiB
445.3 MiB
443.3 MiB
446.5 MiB
444.9 MiB
448.0 MiB
449.4 MiB
453.9 MiB
460.7 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/jfx21u/pull/137/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx21u&pr=137&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/jfx21u/pull/137.diff
  Fetch: git fetch https://git.openjdk.org/jfx21u.git pull/137/head:pull/137

PR: https://git.openjdk.org/jfx21u/pull/137

Reply via email to