< prev index next >
src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2008, 2013, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 253,263 ****
// lock failed or channel closed
removeFromFileLockTable(fli);
result.setFailure(toIOException(x));
} finally {
if (!pending && overlapped != 0L)
! ioCache.remove(overlapped);
end();
}
// invoke completion handler
Invoker.invoke(result);
--- 253,263 ----
// lock failed or channel closed
removeFromFileLockTable(fli);
result.setFailure(toIOException(x));
} finally {
if (!pending && overlapped != 0L)
! ioCache.invalidate(overlapped);
end();
}
// invoke completion handler
Invoker.invoke(result);
*** 450,460 ****
result.setFailure(toIOException(x));
} finally {
if (!pending) {
// release resources
if (overlapped != 0L)
! ioCache.remove(overlapped);
releaseBufferIfSubstituted();
}
end();
}
--- 450,460 ----
result.setFailure(toIOException(x));
} finally {
if (!pending) {
// release resources
if (overlapped != 0L)
! ioCache.invalidate(overlapped);
releaseBufferIfSubstituted();
}
end();
}
*** 627,637 ****
// failed to initiate read:
result.setFailure(toIOException(x));
// release resources
if (overlapped != 0L)
! ioCache.remove(overlapped);
releaseBufferIfSubstituted();
} finally {
end();
}
--- 627,637 ----
// failed to initiate read:
result.setFailure(toIOException(x));
// release resources
if (overlapped != 0L)
! ioCache.invalidate(overlapped);
releaseBufferIfSubstituted();
} finally {
end();
}
< prev index next >