Commit Graph

46 Commits

Author SHA1 Message Date
Roger Riggs
e9d845c870 8205547: FileChannel/CleanerTest.java fails due to expected FD count
Reviewed-by: psandoz
2018-06-26 12:42:36 -04:00
Brian Burkhalter
c390783ee2 8205641: Make java/nio/channels/Selector/RacyDeregister.java noisier and flush after prints
Reviewed-by: alanb
2018-06-26 09:33:55 -07:00
Alan Bateman
807c4ae4a3 8205612: (fc) Files.readAllBytes fails with ClosedByInterruptException when interrupt status set
Reviewed-by: bpb
2018-06-26 08:13:02 +01:00
Peter Levart
6ec2cfcc49 8202788: Explicitly reclaim cached thread-local direct buffers at thread exit
Add internal TerminatingThreadLocal and use it to free cached thread-local direct buffers and nio-fs native buffers

Reviewed-by: tonyp, alanb
2018-06-22 17:56:55 +02:00
Alan Bateman
db61a602f6 8199433: (se) select(Consumer<SelectionKey> action) as alternative to selected-key set
Reviewed-by: bpb
2018-06-16 10:10:54 +01:00
Brian Burkhalter
edbda00716 8205062: (fs) Improve some print diagnostics in java/nio/file/Files/CopyAndMove.java
Reviewed-by: alanb
2018-06-15 12:48:19 -07:00
Vivek Theeyarath
df2f01daf1 8202216: Add Buffer mismatch methods
Reviewed-by: plevart, psandoz
2018-06-14 23:09:11 -07:00
Brian Burkhalter
06eb010e7e 8204915: (fs) Add some print diagnostics to java/nio/file/Files/CopyAndMove.java
Reviewed-by: bchristi
2018-06-13 13:12:50 -07:00
Joe Wang
ca487166f4 8201276: (fs) Add methods to Files for reading/writing a string from/to a file
Reviewed-by: rriggs, smarks, sherman, forax, alanb, mli
2018-06-13 12:50:45 -07:00
Brian Burkhalter
683eebde09 8204576: (fs) java/nio/file/Files/CopyAndMove.java does not set isUnix = true on macOS
Reviewed-by: alanb
2018-06-08 07:58:19 -07:00
Brian Burkhalter
e9f3b0e527 8201407: Files.move throws DirectoryNonEmptyException when moving directory across file system
Reviewed-by: alanb
2018-06-07 07:43:29 -07:00
Alan Bateman
2466623e45 6350055: (se) SelectionKey.interestOps variants to atomically update interest ops
Co-authored-by: David M Lloyd <david.lloyd@redhat.com>
Reviewed-by: bpb
2018-06-07 09:18:39 +01:00
Brian Burkhalter
9269c67670 8203765: java/nio/channels/Selector/SelectAndClose: add some prints and @intermittent tag
Reviewed-by: alanb
2018-05-31 07:37:06 -07:00
Vyom Tewari
6a48db9cf6 8194298: Add support for per Socket configuration of TCP keepalive
Reviewed-by: chegar, clanger, igerasim, alanb
2018-05-30 16:36:35 +05:30
Brian Burkhalter
5c90486c43 8202290: AtomicAppend tests fail on macOS 10.13 ("High Sierra")
Reinstate actual running of tests for macOS version >= 10.13.

Reviewed-by: alanb
2018-05-25 07:22:37 -07:00
Brian Burkhalter
18d880bad8 8203766: Add some instrumentation to jdk/java/nio/channels/Selector/RacyDeregister.java
Reviewed-by: alanb
2018-05-24 12:29:50 -07:00
Alan Bateman
d64c38aab2 8203059: (so) Closing a socket channel registered with Selector and with SO_LINGER set to 0 does not reset connection
Reviewed-by: chegar
2018-05-15 09:33:02 +01:00
Brian Burkhalter
cdd3f0ac39 8202284: FileChannel and FileOutpuStream variants of AtomicAppend should fail silently on macOS >= 10.13
Reviewed-by: chegar
2018-04-30 13:40:39 -07:00
Hamlin Li
673e292ffe 8157543: java/nio/channels/Selector/SelectAndCancel.java fails intermittently
Reviewed-by: alanb
2018-04-26 10:29:44 +08:00
Hamlin Li
17da4aca08 8161991: java/nio/channels/AsynchronousSocketChannel/Basic.java failed due to RuntimeException: WritePendingException expected
8171404: java/nio/channels/AsynchronousSocketChannel/Basic.java failed with "AsynchronousCloseException expected"
8201520: AsynchronousSocketChannel/Basic.java timeout intermitently

Reviewed-by: alanb
2018-04-20 15:16:36 +08:00
Alan Bateman
33b921f25d 8201315: (se) Allow SelectableChannel.register to be invoked while selection operation is in progress
Reviewed-by: bpb
2018-04-18 10:20:09 +01:00
Alan Bateman
45fb75c85a 8201474: (so) Socket adaptor connect(InetAddress, timeout) succeeds when connection fails
Reviewed-by: bpb
2018-04-14 08:41:42 +01:00
Alan Bateman
97d7cfb14e 8200458: (se) Readiness information previously recorded in the ready set not preserved
Reviewed-by: bpb, chegar
2018-04-05 15:04:09 +01:00
Martin Buchholz
4546512c19 8200310: Avoid charset lookup machinery in java.nio.charset.StandardCharsets
Reviewed-by: sherman, ulfzibis
2018-03-28 21:14:06 -07:00
Alan Bateman
3bb85f5fc5 8199791: (se) More Selector cleanup
Reviewed-by: redestad, bpb
2018-03-23 14:18:18 +00:00
Brian Burkhalter
37f1b2b1e3 8198753: (dc) DatagramChannel throws unspecified exceptions
Reviewed-by: alanb
2018-03-22 12:29:52 -07:00
Paul Sandoz
a2ea38d2c9 8199773: (bf) XXXBuffer:compareTo method is not working as expected
Reviewed-by: alanb
2018-03-22 09:07:08 -07:00
Hamlin Li
d76f461144 8199215: Re-examine getFreePort method in test infrastructure library
Reviewed-by: alanb
2018-03-16 18:15:31 +08:00
Alan Bateman
889a041f22 8198928: (so) SocketChannel connect may deadlock if closed at around same time that connect fails
Reviewed-by: bpb, mli
2018-03-07 07:13:55 +00:00
Brian Burkhalter
a131e1668f 8198834: (ch) Enable java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java on linux-x64
Move to using centralized native build and remove obsolete .so files

Reviewed-by: alanb, erikj
2018-03-05 08:27:42 -08:00
Brian Burkhalter
a7b3a19ec4 8191416: (bf) DirectByteBuffer extends MappedByteBuffer, confuses instanceof tests
Change force(), load(), and isLoaded() not to throw UOE if there is no file mapping

Reviewed-by: alanb, rriggs, forax
2018-02-12 08:19:23 -08:00
Brian Burkhalter
073cfe14a5 8166253: (ch) FileLock object can get GC'd and result in unexpected release of file lock
Reviewed-by: alanb, dfuchs, mli, rriggs
2018-02-02 13:44:26 -08:00
Lana Steuck
c8c8cd7238 Merge 2018-01-04 04:22:28 +00:00
Paul Sandoz
fb9db6b02d 8193085: Vectorize the nio Buffer equals and compareTo implementations
Reviewed-by: alanb
2017-12-20 09:14:52 -08:00
Joe Wang
4f080a83af 8183743: Umbrella: add overloads that take a Charset parameter
Reviewed-by: alanb, rriggs
2017-12-12 11:10:12 -08:00
Jesper Wilhelmsson
f1985b2e7e Merge 2017-12-13 23:06:59 +01:00
Vladimir Kozlov
c11f132abe 8191788: add jdk.internal.vm.compiler to --limit-modules if -Djvmci.Compiler=graal is in the command line
Skip tests which use --limit-modules when Graal is used as JIT compiler.

Reviewed-by: alanb, mchung, dholmes, ccheung, dnsimon
2017-12-13 11:59:55 -08:00
Brian Burkhalter
dd07ad1703 8191872: (fs) UnixNativeDispatcher conditionally compiles in support for high precision timestamps
Remove POSIX conditional compilation and correct stat64 times for macOS

Reviewed-by: alanb, simonis
2017-12-07 08:56:04 -08:00
Alexandre Iline
30b907936b 8191736: replace javah w/ javac in jdk tests
Reviewed-by: serb, jjg
2017-11-22 02:07:08 -08:00
Brian Burkhalter
1ca74d0d2e 8191025: (ch) Scattering reads to a subsequence of buffers ignores length
Use length parameter instead of the buffer array length

Reviewed-by: rriggs, alanb
2017-11-09 13:30:03 -08:00
Brian Burkhalter
95c6c8ce11 8190501: (fs) Incorrect error message parameter in java/nio/file/Files/probeContentType/Basic.java
Replace expectedTypes with expectedTypes[i] in the line in question.

Reviewed-by: alanb
2017-11-03 10:18:27 -07:00
Brian Burkhalter
87eb47a3c8 8190500: (ch) ReadableByteChannelImpl::read and WritableByteChannelImpl::write might not throw ClosedChannelException as specified
Explicitly verify that the channel is open

Reviewed-by: alanb
2017-11-03 10:18:27 -07:00
Brian Burkhalter
16b93f1b06 8189775: java/nio/channels/FileChannel/directio/ReadDirect.java failed with NumberFormatException
Clamp the offset so the scattering read remains within the channel.

Reviewed-by: rriggs
2017-10-25 16:13:53 -07:00
Lucy Lu
ec1c3bce45 8164900: Add support for O_DIRECT
Add support for Direct I/O in FileChannel

Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Reviewed-by: alanb, bpb, alanbur, coffeys, aph, clanger, plevart, mli, psandoz, simonis
2017-10-17 16:51:11 -07:00
Brian Burkhalter
b890c3ce83 8147615: (fc) FileChannelImpl has no finalizer
Add a cleaner to close parent-less FileChannels

Reviewed-by: alanb, rriggs
2017-10-10 09:55:14 -07:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00