Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083477 | emb-9 | Martin Buchholz | P3 | Resolved | Fixed | master |
JDK should use O_CLOEXEC when available; faster and less racy than FD_CLOEXEC.
O_CLOEXEC is standardized.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
Backward compatibility needs to be provided via #ifdef and checking (once) whether O_CLOEXEC works.
All the Unix variants should have very similar changes to their os::open code applied.
Webrev: http://cr.openjdk.java.net/~martin/webrevs/openjdk9/O_CLOEXEC/
O_CLOEXEC is standardized.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
Backward compatibility needs to be provided via #ifdef and checking (once) whether O_CLOEXEC works.
All the Unix variants should have very similar changes to their os::open code applied.
Webrev: http://cr.openjdk.java.net/~martin/webrevs/openjdk9/O_CLOEXEC/
- backported by
-
JDK-8083477 Use open(O_CLOEXEC) instead of fcntl(FD_CLOEXEC)
-
- Resolved
-