Integrated: 8354121: Use a record class rather than a lambda in AbstractMemorySegmentImpl::cleanupAction
Per Minborg
pminborg at openjdk.org
Wed Apr 9 13:50:43 UTC 2025
On Tue, 8 Apr 2025 14:47:04 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes to use an anonymous class rather than a lambda in order to improve startup time.
>
> We need to make sure the regression is fixed by this. It might be the case that the regression is there because [JDK-8347047](https://bugs.openjdk.org/browse/JDK-8347047) actually fixed an issue so that the segments could be collected by the GC.
This pull request has now been integrated.
Changeset: c3e04395
Author: Per Minborg <pminborg at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c3e043956e72996a56a7ae9822782ba4dfdc0607
Stats: 13 lines in 1 file changed: 10 ins; 0 del; 3 mod
8354121: Use a record class rather than a lambda in AbstractMemorySegmentImpl::cleanupAction
Reviewed-by: liach
-------------
PR: https://git.openjdk.org/jdk/pull/24514
More information about the core-libs-dev
mailing list