RFR: 8184166: SortedList does not free up memory [v5]

Cormac Redmond duke at openjdk.org
Thu Dec 18 19:41:02 UTC 2025


> Fix SortedList memory leak by clearing unused entries in the internal array when the source list shrinks. Also nullify tempElement.e after use,
> 
> Adding "--add-opens=javafx.base/javafx.collections.transformation=ALL-UNNAMED" to allow reflection access from tests.

Cormac Redmond has updated the pull request incrementally with one additional commit since the last revision:

  8184166: improve readability

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/2000/files
  - new: https://git.openjdk.org/jfx/pull/2000/files/d09a85b5..dfa2ee0c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=2000&range=04
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2000&range=03-04

  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jfx/pull/2000.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2000/head:pull/2000

PR: https://git.openjdk.org/jfx/pull/2000


More information about the openjfx-dev mailing list