mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8309042: MemorySegment::reinterpret cleanup action is not called for all overloads
Reviewed-by: jvernee
This commit is contained in:
parent
78aac241b8
commit
2b186e246e
2 changed files with 16 additions and 1 deletions
|
@ -125,7 +125,7 @@ public abstract sealed class AbstractMemorySegmentImpl
|
|||
public final MemorySegment reinterpret(long newSize, Arena arena, Consumer<MemorySegment> cleanup) {
|
||||
Objects.requireNonNull(arena);
|
||||
return reinterpretInternal(Reflection.getCallerClass(), newSize,
|
||||
MemorySessionImpl.toMemorySession(arena), null);
|
||||
MemorySessionImpl.toMemorySession(arena), cleanup);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue