RFR (14) 8237348: Javadoc of MemorySegment::allocateNative should state that memory is zero-initialized
Jim Laskey
james.laskey at oracle.com
Thu Jan 16 13:58:38 UTC 2020
+1
> On Jan 16, 2020, at 7:49 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
>
> Hi,
> there is a mistake in the javadoc of MemorySegment::allocateNative -as the javadoc says that the initialization state is unspecified, where in reality we do call setMemory on the allocated block (so that memory contents are set to zero).
>
> Webrev:
>
> http://cr.openjdk.java.net/~mcimadamore/8237348/
>
> Cheers
> Maurizio
>
More information about the core-libs-dev
mailing list