[RFC] 4950302: (fs spec) Random write produces different results on Linux vs Windows from same .class

Brian Burkhalter brian.burkhalter at oracle.com
Thu Nov 21 18:26:21 UTC 2019



> On Nov 21, 2019, at 10:24 AM, David Lloyd <david.lloyd at redhat.com> wrote:
> 
>> I’ve been looking at this some more, and while it might be possible to coordinate accesses to accommodate toggling the mode, it’s not clear that it is worth introducing so much more complexity and ugliness for this edge case. Not sure yet how difficult it would be to introduce per-write append with pwritev2 + RWF_APPEND. As mentioned in the thread this would have to fall back to existing behavior where it is not yet supported.
> 
> Would it be a good idea to mention that in the API doc then, as an
> impl. note or something?  I think this is something that people should
> be aware of before trying it.  A cursory search of StackOverflow
> indicates that people tend to discover this "the hard way",
> unfortunately.

I don’t know that that is typically done but I expect someone else will comment.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191121/54b3673f/attachment.html>


More information about the nio-dev mailing list