RFR (14) 8237348: Javadoc of MemorySegment::allocateNative should state that memory is zero-initialized

Chris Hegarty chris.hegarty at oracle.com
Thu Jan 16 11:52:40 UTC 2020



> On 16 Jan 2020, at 11:49, 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/

LGTM.

-Chris.



More information about the core-libs-dev mailing list