RFR: 8354121: Use an anonymous class rather than a lambda in AbstractMemorySegmentImpl::cleanupAction [v2]
Chen Liang
liach at openjdk.org
Wed Apr 9 09:21:37 UTC 2025
On Tue, 8 Apr 2025 16:40:06 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.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>
> Add comment on anonymous class
@minborg Can we just use a local record to avoid accidental local captures (which caused the issue fixed by JDK-8347407)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24514#issuecomment-2788959662
More information about the core-libs-dev
mailing list