There's an obvious bug in `AbstractMemorySegmentImpl::reinterpret(long, Arena, Consumer)`: this method does not pass the consumer down to the internal implementation method (it just passes `null`). As a result, the cleanup is not registered.
------------- Commit messages: - Remove redundant import - Initial push Changes: https://git.openjdk.org/jdk/pull/14199/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14199&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8309042 Stats: 16 lines in 2 files changed: 15 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/14199.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14199/head:pull/14199 PR: https://git.openjdk.org/jdk/pull/14199