Commit graph

419 commits

Author SHA1 Message Date
Sebastian Stenzel
daeca3fff2 8262958: (fs) UnixUserDefinedFileAttributeView cleanup
Reviewed-by: alanb
2021-03-30 13:13:08 +00:00
Sebastian Stenzel
4e74de4b2e 8264111: (fs) Leaking NativeBuffers in case of errors during UnixUserDefinedFileAttributeView.read/write
Reviewed-by: alanb
2021-03-26 14:56:52 +00:00
Jonathan Dowland
ba504fcee8 8187450: JNI local refs exceeds capacity warning in NetworkInterface::getAll
Reviewed-by: chegar, dfuchs, aph
2021-03-22 15:29:47 +00:00
Sebastian Stenzel
0de6abd4b4 8260966: (fs) Consolidate Linux and macOS implementations of UserDefinedFileAttributeView
8260691: (fs) LinuxNativeDispatcher should link to xattr functions

Reviewed-by: alanb
2021-03-02 14:40:45 +00:00
Claes Redestad
8fe1323dcb 8260520: Avoid getting permissions in JarFileFactory when no SecurityManager installed
Reviewed-by: alanb, dfuchs, michaelm, mullan
2021-01-28 11:14:35 +00:00
Brian Burkhalter
2f47c39a74 8259943: FileDescriptor.close0 does not handle EINTR
Reviewed-by: naoto, alanb
2021-01-21 21:54:24 +00:00
Claes Redestad
5891509d13 8259947: (fs) Optimize UnixPath.encode implementation
Reviewed-by: chegar, shade, alanb
2021-01-20 15:14:48 +00:00
Sebastian Stenzel
afd3f78aec 8030048: (fs) Support UserDefinedFileAttributeView/extended attributes on OS X / HFS+
Reviewed-by: alanb
2021-01-16 08:36:05 +00:00
Andrey Turbanov
022bc9f0cb 8258422: Cleanup unnecessary null comparison before instanceof check in java.base
Reviewed-by: chegar, aefimov
2021-01-11 23:30:44 +00:00
Roger Riggs
aa9c136d67 8251989: Hex formatting and parsing utility
Reviewed-by: tvaleev, chegar, naoto, darcy
2020-12-16 20:29:49 +00:00
David Holmes
149a02f99a 8257572: Deprecate the archaic signal-chaining interfaces: sigset and signal
Reviewed-by: ihse, alanb, dcubed, erikj
2020-12-07 21:56:05 +00:00
Maurizio Cimadamore
0fb31dbf3a 8254231: Implementation of Foreign Linker API (Incubator)
Reviewed-by: coleenp, ihse, dholmes, vlivanov
2020-11-23 11:00:38 +00:00
Michael McMahon
6948456dbf 8256461: AbstractFileSystemProvider.getSunPathForSocketCall for empty Path returns '.'
Reviewed-by: dfuchs, alanb
2020-11-18 08:43:51 +00:00
Brian Burkhalter
450452bb8c 8254876: (fs) NullPointerException not thrown when first argument to Path.of or Paths.get is null
Reviewed-by: rriggs, alanb
2020-11-03 19:39:28 +00:00
Christian Stein
f61ce32770 8255576: (fs) Files.isHidden() throws ArrayIndexOutOfBoundsException (unix)
Reviewed-by: alanb
2020-11-01 12:39:43 +00:00
Michael McMahon
6bb7e45e8e 8245194: Unix domain socket channel implementation
Reviewed-by: erikj, dfuchs, alanb, chegar
2020-10-28 17:26:26 +00:00
Eric Liu
a804c6a6ef 8254871: Remove unnecessary string copy in NetworkInterface.c
Reviewed-by: michaelm
2020-10-28 02:15:36 +00:00
Brian Burkhalter
9291e60892 8242680: Improved URI Support
Reviewed-by: alanb, rhalade
2020-10-20 14:58:37 -07:00
Brian Burkhalter
ff3e558679 8242685: Better Path Validation
Reviewed-by: alanb, rhalade
2020-10-20 14:58:37 -07:00
Daniel Fuchs
65393a093c 8229867: Re-examine synchronization usages in http and https protocol handlers
Reviewed-by: chegar, alanb, michaelm
2020-10-13 14:22:11 +00:00
Aleksei Voitylov
63009f90ec 8247589: Implementation of Alpine Linux/x64 Port
Co-authored-by: Mikael Vidstedt <mikael@openjdk.org>
Co-authored-by: Alexander Scherbatiy <alexsch@openjdk.org>
Co-authored-by: Axel Siebenborn <asiebenborn@openjdk.org>
Co-authored-by: Aleksei Voitylov <avoitylov@openjdk.org>
Reviewed-by: alanb, erikj, dholmes
2020-10-13 09:35:58 +00:00
Alexander Scherbatiy
5490b03160 8252248: __SIGRTMAX is not declared in musl libc
Reviewed-by: alanb, vtewari, stuefe
2020-08-31 11:18:20 +03:00
Patrick Concannon
c8c4d8377a 8250886: java/net/DatagramSocket/SendReceiveMaxSize.java fails in timeout
SO_RCVBUF was previously set to match the SO_SNDBUF, however the kernel value for SO_RCVBUF is much larger. This mismatch caused the test to fail, and the fix removes this issue.

Reviewed-by: alanb, dfuchs
2020-08-07 20:39:10 +01:00
Patrick Concannon
7fd5cb6117 8242885: PlainDatagramSocketImpl doesn’t allow for the sending of IPv6 datagrams on macOS with sizes between 65508-65527 bytes
This fix changes the current max size for IPv6 datagrams on macOS from it's current size of 65507, which is the IPv4 limit, to 65527, the actual limit for IPv6 on macOS

Reviewed-by: alanb, dfuchs, vtewari
2020-07-31 12:42:32 +01:00
Koichi Sakata
e3c6574ac0 8250863: Build error with GCC 10 in NetworkInterface.c and k_standard.c
Reviewed-by: aph, ysuenaga
2020-07-31 09:15:57 +09:00
Alexander Scherbatiy
993b1b0afa 8249612: Remove unused ISNANF and ISNAND from jdk_util_md.h
Reviewed-by: darcy
2020-07-23 11:39:56 +03:00
Claes Redestad
9cd41b6555 8246592: Simplify checking of boolean file attributes
Reviewed-by: rriggs, alanb
2020-06-08 22:47:16 +02:00
Claes Redestad
827c8865d8 8246451: Reduce overhead of normalizing file paths with trailing slash
Reviewed-by: lancea
2020-06-03 22:29:34 +02:00
Claes Redestad
0366f6bf45 8246338: Reduce overhead of normalizing file paths
Reviewed-by: alanb
2020-06-02 22:22:58 +02:00
Mikael Vidstedt
44a0a08991 8245600: Clean up libjli
Reviewed-by: dholmes, alanb
2020-05-26 10:18:32 -07:00
Chris Hegarty
f3eb44a94d 8243491: Implementation of Foreign-Memory Access API (Second Incubator)
Upstream latest changes of the Foreign-Memory Access API

Co-authored-by: Jorn Vernee <jorn.vernee@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: chegar, psandoz
2020-05-25 10:54:39 +01:00
Claes Redestad
b2269be8db 8245623: Remove unused code in sun/nio/fs after Solaris removal
Reviewed-by: alanb
2020-05-22 14:21:30 +02:00
Claes Redestad
de37507b8e 8245619: Remove unused methods in UnixNativeDispatcher
Reviewed-by: alanb
2020-05-22 12:10:55 +02:00
Naoto Sato
b5b6ae32d2 8245241: Incorrect locale provider preference is not logged
Reviewed-by: joehw, dfuchs
2020-05-21 13:55:06 -07:00
Mikael Vidstedt
071bd521bc 8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports
Reviewed-by: alanb, bchristi, dcubed, dfuchs, eosterlund, erikj, glaubitz, ihse, iignatyev, jjiang, kbarrett, ksrini, kvn, naoto, prr, rriggs, serb, sspitsyn, stefank, tschatzl, valeriep, weijun, weijun
2020-05-20 17:33:37 -07:00
Michael McMahon
0f7aeed416 8241305: Add protocol specific factory creation methods to SocketChannel and ServerSocketChannel
Reviewed-by: alanb, chegar, dfuchs
2020-05-17 21:15:33 +01:00
Claes Redestad
168cdcf65d 8244936: Reduce JNI overhead of accessing FileDescriptor
Reviewed-by: rriggs, alanb
2020-05-13 22:25:14 +02:00
Bin Liao
b2db7a0c9a 8243539: Copyright info (Year) should be updated for fix of 8241638
Reviewed-by: weijun
2020-04-27 12:32:12 +08:00
Lin Zang
b317d0ee39 8241638: launcher time metrics always report 1 on Linux when _JAVA_LAUNCHER_DEBUG set
Reviewed-by: alanb, dholmes
2020-04-07 03:25:11 +00:00
Christoph Langer
2bc8691156 8241568: (fs) UserPrincipalLookupService.lookupXXX failure with IOE "Operation not permitted"
Reviewed-by: alanb
2020-03-31 09:10:16 +02:00
Bob Vandette
c17ed6a5e5 8239563: Reduce public exports in dynamic libraries built from JDK static libraries
Reviewed-by: dholmes, ihse
2020-02-27 11:36:55 -05:00
Vipin M V
2bc4308d86 8129841: Update comment for Java_java_net_Inet6AddressImpl_getHostByAddr
Update comment for Java_java_net_Inet6AddressImpl_getHostByAddr

Reviewed-by: vtewari, alanb
2020-03-27 11:34:45 +05:30
Mandy Chung
d5d6dc0caa 8228336: Refactor native library loading implementation
Reviewed-by: alanb, dholmes
2020-03-12 11:54:11 -07:00
Daniel Fuchs
58337b12f8 8059309: network tests fail with "java.net.SocketException: Couldn't obtain phys addr" when run as "root"
The solaris specific code is changed to use the fallback mechanism if the DLPI interface returns an error indicating that the operation is unsupported. In addition, NetworkInterface::getHardwareAddress is changed to always return null for the loopback interface.

Reviewed-by: alanb
2020-03-12 18:31:49 +00:00
Patrick Concannon
0ed44d0aee 8239355: (dc) Initial value of SO_SNDBUF should allow sending large datagrams (macOS)
Updates DatagramChannel so that the SO_SNDBUF is set to a minimum value of 65527 for IPv6 sockets and 65507 for IPv4 sockets on macOS.

Reviewed-by: alanb, dfuchs
2020-03-12 17:08:09 +00:00
Patrick Zhang
a59e8a7f6f 8238380: java.base/unix/native/libjava/childproc.c "multiple definition" link errors with GCC10
Reviewed-by: stuefe, clanger, rriggs
2020-02-04 21:27:10 +08:00
Claes Redestad
c639682887 8236075: Minor bootstrap improvements
Reviewed-by: mchung, alanb
2020-01-21 13:28:15 +01:00
Alan Bateman
d4c3278889 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket
Reviewed-by: dfuchs
2020-01-19 08:02:46 +00:00
Alan Bateman
6ef474a4f4 8053479: (dc) DatagramChannel.read() throws exception instead of discarding data when buffer too small
Reviewed-by: redestad, dfuchs
2020-01-18 19:11:28 +00:00
Gustavo Romero
1691abc747 8234599: PPC64: Add support on recent CPUs and Linux for JEP-352
Reviewed-by: mbaesken, mdoerr, adinn
2019-11-21 17:10:26 -03:00