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

Andy Goryachev angorya at openjdk.org
Thu Dec 18 19:50:28 UTC 2025


On Thu, 18 Dec 2025 19:41:02 GMT, Cormac Redmond <duke at openjdk.org> wrote:

>> 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

we don't use `final` keyword on effectively final variables anymore, it's no longer needed.

once @hjohn approves the PR you can issue an `/integrate` comment.  and congrats on the first PR! :-)

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

PR Comment: https://git.openjdk.org/jfx/pull/2000#issuecomment-3671969370


More information about the openjfx-dev mailing list