RFR: 8207851 JEP Draft: Support ByteBuffer mapped over non-volatile memory

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 20 11:11:55 UTC 2019


On 19/02/2019 18:01, Andrew Dinn wrote:
> :
> My reason for using capacity() was that I was swayed by the original
> implementation of force(). It calls
>
>    force0(fd, mappingAddress(offset), mappingLength(offset))
>
> :
>
> I'm wondering if this ought to remain as is or ought to change to
> specify limit()?
>
The no-arg force method is specified to force any changes to the buffer 
content to be written so I don't think it needs to change. We could 
clarify the spec on this point but I don't think it is strictly needed.

-Alan


More information about the core-libs-dev mailing list