--- old/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java 2017-07-24 13:12:37.000000000 -0700 +++ new/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java 2017-07-24 13:12:37.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -255,7 +255,7 @@ result.setFailure(toIOException(x)); } finally { if (!pending && overlapped != 0L) - ioCache.remove(overlapped); + ioCache.invalidate(overlapped); end(); } @@ -452,7 +452,7 @@ if (!pending) { // release resources if (overlapped != 0L) - ioCache.remove(overlapped); + ioCache.invalidate(overlapped); releaseBufferIfSubstituted(); } end(); @@ -629,7 +629,7 @@ // release resources if (overlapped != 0L) - ioCache.remove(overlapped); + ioCache.invalidate(overlapped); releaseBufferIfSubstituted(); } finally {