[PING] JDK 10 RFR of 8184157: (ch) AsynchronousFileChannel hangs with internal error when reading locked file

Brian Burkhalter brian.burkhalter at oracle.com
Fri Aug 11 19:57:57 UTC 2017


Hi Roger,

On Aug 11, 2017, at 6:49 AM, Roger Riggs <Roger.Riggs at Oracle.com> wrote:

> I'm not sure I have enough background to fully review this.

Au contraire.

> Seeing that overlapped (some) memory is freed only at close, can there be a problem with
> a very active channel that is open for a long time to accumulate/leak native memory?
> PendingIoCache:135-136: Or is that just belt and suspenders?

No I think that is a very good point. After invalidate() the value of “overlapped” is needed but I don’t think the memory it points to. I think the freeMemory() call should be moved into invalidate(). Good catch! I will update and re-post.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170811/2f1969fc/attachment.html>


More information about the nio-dev mailing list