RFR: 8347047: cleanup action passed to MemorySegment::reinterpret keeps old segment alive
Per Minborg
pminborg at openjdk.org
Tue Jan 7 10:48:42 UTC 2025
This PR proposes to eliminate the capturing of `this` in the cleanup action of `AbstractMemorySegment::reinterpretInternal`.
-------------
Commit messages:
- Prevent capturing of _this_
Changes: https://git.openjdk.org/jdk/pull/22943/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22943&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8347047
Stats: 11 lines in 1 file changed: 7 ins; 2 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/22943.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22943/head:pull/22943
PR: https://git.openjdk.org/jdk/pull/22943
More information about the core-libs-dev
mailing list