-
Enhancement
-
Resolution: Fixed
-
P4
-
23
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8336140 | 23.0.1 | Jorn Vernee | P4 | Resolved | Fixed | b03 |
JDK-8336129 | 23 | Jorn Vernee | P4 | Closed | Fixed | b31 |
There has been some uncertainty among users about whether the behavior of MemorySegment::reinterpret performs allocation or not (such as here: https://stackoverflow.com/questions/78592574 but also elsewhere).
It seems that, the javadoc of both the reinterpret and asSlice methods would benefit from static explicitly that: "the returned memory segment is backed by the same region of memory as this segment". Or something along those lines.
It seems that, the javadoc of both the reinterpret and asSlice methods would benefit from static explicitly that: "the returned memory segment is backed by the same region of memory as this segment". Or something along those lines.
- backported by
-
JDK-8336140 Explicitly specify that asSlice and reinterpret return a memory segment backed by the same region of memory.
- Resolved
-
JDK-8336129 Explicitly specify that asSlice and reinterpret return a memory segment backed by the same region of memory.
- Closed
- links to
-
Commit openjdk/jdk/c80e2eb3
-
Commit(jdk23) openjdk/jdk/5b9ecb17
-
Review openjdk/jdk/19633
-
Review(jdk23) openjdk/jdk/20116
(1 links to)