Philippe Marschall
2a406f3ce5
8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
...
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
2020-09-30 20:05:07 +00:00
Conor Cleary
831f23ee86
8246707: (sc) SocketChannel.read/write throws AsynchronousCloseException on closed channel
...
This fix addresses an issue where an AsynchronousCloseException was being thrown instead of a ChannelClosedException when SocketChannel.write() is called on a closed SocketChannel.
Reviewed-by: alanb, chegar, dfuchs
2020-08-12 12:32:54 +01:00
Matthias Baesken
11a8c9c13e
8250770: Net.java translateToSocketException does not handle IOException
...
Reviewed-by: alanb, dfuchs
2020-07-29 12:56:02 +02: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
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
Patrick Concannon
fad2cf51ba
8241072: Reimplement the Legacy DatagramSocket API
...
Replace the underlying implementations of the java.net.DatagramSocket and java.net.MulticastSocket APIs with simpler and more modern implementations that are easy to maintain and debug.
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Reviewed-by: alanb, chegar, dfuchs
2020-05-12 21:51:53 +01:00
Patrick Concannon
8e21a2a1e4
8237890: DatagramPacket::getSocketAddress doesn't specify what happens if address or port are not set
...
This fix changes the default port of a DatagramPacket from -1 to 0, which changes the behaviour of calling getSocketAddress with no port set from throwing an IAE to returning an InetSocketAddress representing any local address with port 0.
Reviewed-by: alanb, chegar, dfuchs
2020-04-22 12:34:09 +01:00
Henry Jen
0278846eaa
Merge
2020-04-14 23:11:49 +00:00
Denghui Dong
a62a0e5282
8238665: Add JFR event for direct memory statistics
...
Reviewed-by: egahlin, alanb
2020-04-14 20:36:33 +02:00
Brian Burkhalter
ea36a53b75
8241952: (fs) FileChannel.write(ByteBuffer src, long position) does not check for the FileChannel being closed first
...
Reviewed-by: lancea, alanb
2020-04-13 10:17:03 -07:00
Patrick Concannon
378aef32ab
8240533: Inconsistent Exceptions are thrown by DatagramSocket and DatagramChannel when sending a DatagramPacket to port 0
...
Fix adds checks for port == 0 to the send and connect methods in DatagramSocket and DatagramChannelImpl
Reviewed-by: alanb, chegar, dfuchs, lancea
2020-04-07 16:21:01 +01:00
Ivan Gerasimov
53b2368d49
8241760: Typos: empty lines in javadoc, inconsistent indents, etc. (net and nio)
...
Reviewed-by: alanb, prappo, dfuchs
2020-03-30 13:59:16 -07:00
Patrick Concannon
94bb505c94
8235783: DatagramSocket::disconnect should allow an implementation to throw UncheckedIOException
...
Undocumented throwing of Errors changed to throw a more user friendly UncheckedIOException
Reviewed-by: alanb, chegar, dfuchs
2020-01-23 14:43:37 +00:00
Alan Bateman
d4c3278889
8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket
...
Reviewed-by: dfuchs
2020-01-19 08:02:46 +00:00
Jesper Wilhelmsson
d34f561de0
Merge
2020-01-15 20:41:46 +01:00
Brian Burkhalter
79ec4004d7
8236661: launcher test PatchSystemModules.java start failing frequently after JDK-8234049
...
Reviewed-by: alanb, mchung
2020-01-14 11:06:03 -08:00
Alan Bateman
c6a4cea7a0
8236246: SelectorProvider support for creating a DatagramChannel that is not interruptible
...
Reviewed-by: chegar
2019-12-20 09:28:57 +00:00
Jorn Vernee
8f4f088a12
8234049: Implementation of Memory Access API (Incubator)
...
Co-authored-by: Vlaidmir Ivanov <vladimir.x.ivanov@oracle.com>
Reviewed-by: alanb, psandoz, chegar, rriggs, plevart, briangoetz, jrose, adinn, vlivanov
2019-12-12 22:59:57 +00:00
Daniel Fuchs
ad09813035
8233245: More adaptive sockets
...
Reviewed-by: chegar, igerasim, alanb, skoivu, rhalade
2019-12-09 20:33:15 +00:00
Alan Bateman
e7d68cd13b
8235193: (dc) Remove JNI overhead from DatagramChannel.send implementation
...
Reviewed-by: chegar
2019-12-04 16:37:00 +00:00
Ivan Gerasimov
cd589d8469
8234147: Avoid looking up standard charsets in core libraries
...
Reviewed-by: alanb
2019-12-01 15:29:37 -08:00
Alan Bateman
f3e90595aa
8234805: (dc) Remove JNI upcall from DatagramChannel.receive implementation
...
Reviewed-by: dfuchs, chegar
2019-11-30 16:21:19 +00:00
Alan Bateman
7e42642939
8231259: (dc) DatagramChannel::disconnect re-binds socket to the wildcard address (macOS)
...
Reviewed-by: dfuchs, chegar
2019-11-20 08:35:53 +00:00
Alan Bateman
27e0cdf12d
8236184: (dc) IP_MULTICAST_* and IP_TOS socket options not effective
...
Reviewed-by: dfuchs
2019-12-19 08:36:40 +00:00
Alan Bateman
090dc51a4e
8233435: (dc) DatagramChannel should allow IPv6 socket join IPv4 multicast groups (macOS, win)
...
Reviewed-by: dfuchs
2019-11-09 11:48:37 +00:00
Alan Bateman
fd077ea9ae
8233430: (sc) Socket adaptor restoring of blocking mode can override exception if socket closed
...
Reviewed-by: dfuchs, chegar
2019-11-03 14:07:43 +00:00
Alan Bateman
db4909bf99
8232673: (dc) DatagramChannel socket adaptor issues
...
Reviewed-by: dfuchs, chegar
2019-11-02 10:02:18 +00:00
Alan Bateman
0290476112
8212132: (dc) Remove DatagramChannelImpl finalize method
...
Reviewed-by: bpb, chegar, dfuchs, martin
2019-10-27 12:13:51 +00:00
Henry Jen
8d141f1048
Merge
2019-10-14 21:01:25 +00:00
Andrew Leonard
0dbfc97c05
8231717: Improve performance of charset decoding when charset is always compactable
...
Reviewed-by: rriggs, redestad, alanb
2019-10-10 10:28:55 +01:00
Daniel Fuchs
a690af3832
8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
...
DatagramChannel::disconnect will attempt to rebind to the original port if the local port switches back to 0 after the association is disolved by the system.
Reviewed-by: alanb, chegar, fweimer
2019-10-09 17:38:58 +01:00
Alan Bateman
51e94d8dac
8231921: (se) SelectorImpl.register does not need to set the attachment when it is null
...
Reviewed-by: bpb
2019-10-08 10:58:36 +01:00
Alan Bateman
38bdacafbc
8231603: (se) Selector implementations do not need to use cancelledKeys
...
Reviewed-by: chegar, bpb
2019-10-02 09:16:18 +01:00
Naoto Sato
28b972e5ce
8229960: Remove sun.nio.cs.map system property
...
Reviewed-by: alanb
2019-09-10 12:51:05 -07:00
Joe Darcy
9d764ee48e
8229997: Apply java.io.Serial annotations in java.base
...
Reviewed-by: alanb, rriggs
2019-08-29 16:31:34 -07:00
Ivan Gerasimov
5c25e2a6fb
8211360: Change #if DEF to #if defined(DEF)
...
Reviewed-by: bpb, vtewari
2019-08-21 13:49:16 -07:00
Andrew Dinn
047b8bfeb7
8224974: Implement JEP 352
...
Non-Volatile Mapped Byte Buffers
Reviewed-by: alanb, kvn, bpb, gromero, darcy, shade, bulasevich, dchuyko
2019-08-20 10:11:53 +01:00
Brian Burkhalter
3155cd829b
8227609: (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size
...
Reviewed-by: alanb, lancea, fweimer
2019-07-30 09:46:06 -07:00
Claes Redestad
78a1c8ea0a
8227587: Add internal privileged System.loadLibrary
...
Reviewed-by: rriggs, mchung, chegar
2019-07-17 12:35:46 +02:00
Brian Burkhalter
c6c82dd736
8227080: (fs) Files.newInputStream(...).skip(n) is slow
...
Reviewed-by: sbordet, rriggs, fweimer
2019-07-03 14:37:19 -07:00
Michael McMahon
247a6a2ce4
8216417: cleanup of IPv6 scope-id handling
...
Reviewed-by: alanb, chegar, dfuchs
2019-06-13 09:10:51 +01:00
Alan Bateman
7e14aeb133
8221481: Reimplement the Legacy Socket API
...
Reviewed-by: michaelm, chegar
2019-05-30 07:19:19 +01:00
Chris Hegarty
bc24d17e80
8224477: java.net socket types new-style socket option methods - spec and impl mismatch
...
Reviewed-by: alanb
2019-05-29 13:58:05 +01:00
Alan Bateman
94d1d0d3d4
8223353: (ch) Change channel close implementation to not wait for I/O threads
...
Reviewed-by: dfuchs, chegar
2019-05-08 08:15:04 +01:00
Alan Bateman
2998236d83
8222774: (ch) Replace uses of stateLock and blockingLock with j.u.c. locks
...
Reviewed-by: dfuchs, bpb, martin
2019-04-25 10:41:49 +01:00
Brian Burkhalter
69ca2e9e27
8220477: Channels.newWriter() does not close if underlying channel throws an IOException
...
Reviewed-by: alanb
2019-04-17 08:12:19 -07:00
Andrew Dinn
1c7d214f53
8221397: Support implementation-defined Map Modes
...
Allow implementation-defined extensions to FileChannel MapMode enum
Reviewed-by: alanb
2019-04-09 16:21:20 +01:00
Alan Bateman
e91c1ec7a6
8223326: Regression introduced by CPU sync: java.security.AccessControlException: access denied ("java.net.NetPermission" "setSocketImpl")
...
Reviewed-by: dfuchs, alanb
2019-05-03 19:42:28 +01:00
Alan Bateman
3a4d5db248
8221252: (sc) SocketChannel and its socket adaptor need to handle connection reset
...
Reviewed-by: bpb
2019-03-22 11:35:35 +00:00