United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7133497 : (fc) FileChannel.lock not preempted by asynchronous close on OS X

Details
Type:
Bug
Submit Date:
2012-01-26
Status:
Resolved
Updated Date:
2014-01-22
Project Name:
JDK
Resolved Date:
2014-01-22
Component:
core-libs
OS:
os_x
Sub-Component:
java.nio
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
7u4,8
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
From http://java.net/jira/browse/MACOSX_PORT-230 --

Build: b201
Keywords: test-fail-macos
Tests failed (Regression):
java/nio/channels/AsynchronousFileChannel/Lock.java

                                    

Comments
This has been resolved in jdk9/dev via JDK-7133499.
                                     
2014-01-22
EVALUATION

Implementing asynchronous close of FileChannel is going to require changes that may be disruptive to other platforms so I think we should work on this for 8 and then back-port later to a 7u release. Note that this never worked with Apple's JDK6 either so this is not a regression.
                                     
2012-02-01
EVALUATION

The issue here is that dup2 is blocking and doesn't close the file as is does on other platforms. This is the same underlying reason that channels/AsyncCloseAndInterrupt.java fails.
                                     
2012-01-26



Hardware and Software, Engineered to Work Together