46 Commits

Author SHA1 Message Date
Brian Burkhalter
db8bc54f61 8179452: Remove intermittent key from some tests which appear no longer to fail
Remove "intermittent" key

Reviewed-by: alanb, lancea, darcy
2017-04-28 16:14:57 -07:00
Brian Burkhalter
fe9e5e1b5e 8177550: (fc) Enable java/nio/channels/FileChannel/{Transfer4GBFile.java,TransferTo6GBFile.java} on Linux and Windows
Re-enabled tests currently suppressed on Linux and Windows as the timeouts have been increased.

Reviewed-by: alanb
2017-03-24 09:16:58 -07:00
Brian Burkhalter
8f68c5a17d 8176895: (fc) Split java/nio/channels/FileChannel/Transfer.java into smaller tests
Move sub-tests writing 4GB and 6GB files into two separate tests

Reviewed-by: clanger
2017-03-17 08:38:12 -07:00
Brian Burkhalter
ad6392624e 8176846: (fc) Increase timeouts of and instrument some tests using FileChannel#write
Change tests to improve odds of passing on slow file systems.

Reviewed-by: clanger, rriggs
2017-03-16 08:58:31 -07:00
Brian Burkhalter
8835635183 8176394: Incorrect relational operator in java/nio/channels/FileChannel/InterruptDeadlock.java
Change Reader thread run method so it reads continuously as intended

Reviewed-by: alanb
2017-03-08 12:14:25 -08:00
Hamlin Li
af9013c96e 8176337: Mark several tests as intermittently failing
Reviewed-by: darcy
2017-03-07 23:01:51 -08:00
Brian Burkhalter
eff1703b33 8175041: Add success message to java/nio/channels/FileChannel/LoopingTruncate.java
Print "Test succeeded" to stdout at the end of main()

Reviewed-by: alanb
2017-02-16 14:55:34 -08:00
Brian Burkhalter
6ae128f2d3 8174127: (ch) Add instrumentation to java/nio/channels/FileChannel/Transfer.java
Convert to TestNG and add some debugging output for large file creation time

Reviewed-by: alanb
2017-02-09 14:49:09 -08:00
Brian Burkhalter
d8e5d53723 8168628: (fc) SIGBUS when extending file size to map it
Synchronize file extension and subsequent map0(); on Linux use fallocate64() instead of ftruncate64().

Reviewed-by: rehn, simonis, alanb
2016-12-02 13:22:16 -08:00
Christoph Langer
ea29d586dd 8164649: Cleanup of test java/nio/channels/FileChannel/Lock.java
Reviewed-by: alanb
2016-08-29 11:23:34 +02:00
Brian Burkhalter
5d404c26b1 8160221: jdk/test/java/nio/channels/FileChannel/Transfers.java leaving files behind
Create temporary files in the test scratch directory instead of in the default temporary file directory.

Reviewed-by: alanb
2016-07-12 07:58:40 -07:00
Amy Lu
6f57005359 8156512: Mark several tests from java/nio as intermittently failing
Reviewed-by: alanb
2016-05-09 18:06:57 +08:00
Ivan Gerasimov
f3e4326747 8137230: TEST_BUG: java/nio/channels/FileChannel/LoopingTruncate.java timed out
Reviewed-by: rriggs
2015-09-29 17:26:14 +03:00
Ivan Gerasimov
1613e728cc 8137121: (fc) Infinite loop FileChannel.truncate
Reviewed-by: alanb
2015-09-26 00:23:15 +03:00
Joe Darcy
86c109e149 8078334: Mark regression tests using randomness
Reviewed-by: xuelei, alanb
2015-04-29 10:25:53 -07:00
Sean Coffey
c20d40c269 8068507: (fc) Rename the new jdk.net.enableFastFileTransfer system property to jdk.nio.enableFastFileTransfer
Reviewed-by: alanb
2015-01-08 11:44:10 +00:00
Brian Burkhalter
871abc48e4 8025619: (fc) FileInputStream.getChannel on closed stream returns FileChannel that doesn't know that stream is closed
If the stream is closed ensure getChannel() returns a closed channel. Also, FileKey.create() should throw an IOException directly instead of wrapping it in an Error.

Reviewed-by: alanb
2014-12-15 12:09:49 -08:00
Kirk Shoop
9eafb6c406 8064407: (fc) FileChannel transferTo should use TransmitFile on Windows
Co-authored-by: Valeriy Kopylov <v-valkop@microsoft.com>
Reviewed-by: alanb
2014-12-07 07:10:29 +00:00
Ivan Gerasimov
2426fa797f 8054029: (fc) FileChannel.size() returns 0 for block devices on Linux
Reviewed-by: alanb
2014-09-13 20:06:15 +04:00
Dan Xu
a353eaac39 8028628: java/nio/channels/FileChannel/Size.java failed once in the same binary run
Reviewed-by: alanb, chegar, mchung, lancea
2013-11-21 14:23:41 -08:00
Chris Dennis
ca4ee27ab5 8024833: (fc) FileChannel.map does not handle async close/interrupt correctly
Reviewed-by: alanb
2013-10-22 12:04:19 +01:00
Alan Bateman
aefbf5bd89 8012019: (fc) Thread.interrupt triggers hang in FileChannelImpl.pread (win)
Reviewed-by: chegar
2013-04-17 16:11:19 +01:00
Alan Bateman
f2aa8d9df9 8000330: (fc) FileChannel.truncate issues when given size > file size
8002180: (fc) FileChannel.map does not throw NPE if MapMode specified as null

Reviewed-by: chegar
2012-11-04 14:07:35 +00:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
James Melvin
d090606f36 7130404: [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6
On Mac OS X, align system property "os.arch" with Apple legacy JDKs.  Also, improve os.name string matching by using .contains() method instead of .startsWith(). This fix spans multiple repositories.

Reviewed-by: dcubed, phh, ohair, katleman
2012-04-16 18:09:53 -04:00
Alan Bateman
3269d85838 7113349: Initial changeset for Macosx port to jdk
Co-authored-by: Alexander Potochkin <alexander.potochkin@oracle.com>
Co-authored-by: Alexander Zuev <alexander.zuev@oracle.com>
Co-authored-by: Andrew Brygin <andrew.brygin@oracle.com>
Co-authored-by: Artem Ananiev <artem.ananiev@oracle.com>
Co-authored-by: Alex Strange <astrange@apple.com>
Co-authored-by: Bino George <bino@apple.com>
Co-authored-by: Christine Lu <christine.lu@oracle.com>
Co-authored-by: David Katleman <david.katleman@oracle.com>
Co-authored-by: David Durrence <david_durrence@apple.com>
Co-authored-by: Dmitry Cherepanov <dmitry.cherepanov@oracle.com>
Co-authored-by: Greg Lewis <glewis@eyesbeyond.com>
Co-authored-by: Kevin Miller <kevin_m_miller@apple.com>
Co-authored-by: Kurt Miller <kurt@intricatesoftware.com>
Co-authored-by: Landon Fuller <landonf@plausiblelabs.com>
Co-authored-by: Leonid Romanov <leonid.romanov@oracle.com>
Co-authored-by: Loefty Walkowiak <loefty@apple.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Roger Hoover <rhoover@apple.com>
Co-authored-by: Scott Kovatch <scott.kovatch@oracle.com>
Co-authored-by: Sergey ByloKhov <sergey.bylokhov@oracle.com>
Co-authored-by: Mike Swingler <swingler@apple.com>
Co-authored-by: Tomas Hurka <tomas.hurka@oracle.com>
Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks
2012-03-06 20:34:38 +00:00
Alan Bateman
54cdd2715c 7043425: (fc) ClosedByInterruptException thrown but interrupt status not set
Reviewed-by: dholmes, chegar
2011-05-11 14:57:17 +01:00
Kelly O'Hair
d2b1e20c7d 7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes
2011-04-06 22:06:11 -07:00
Alan Bateman
9aa277a541 6526860: (fc) FileChannel.position returns 0 when FileOutputStream opened in append mode
Reviewed-by: forax
2011-02-17 20:50:22 +00:00
Alan Bateman
256ce3b0ba Merge 2011-01-28 09:31:48 +00:00
Alan Bateman
2f37110eca 7006126: (fs) Updates to file system API (1/2011)
Reviewed-by: chegar, sherman
2011-01-28 09:28:43 +00:00
Joe Darcy
1dd962a92e 7013420: Project Coin: remove general expression support from try-with-resources statement
Reviewed-by: alanb
2011-01-26 12:32:23 -08:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Alan Bateman
3111dfa081 6709457: (fc) lock/tryLock() throws IOException "Access is denied" when file opened for append [win]
Reviewed-by: chegar
2010-12-01 13:49:02 +00:00
Alan Bateman
4f08e82908 6979009: (fc) FileChannel.read() fails to throw ClosedByInterruptException
Reviewed-by: forax, sherman, chegar
2010-11-09 18:56:39 +00:00
Alan Bateman
55b13f6d55 6984545: (fc) transferFrom does not throw NonReadableChannelException when target is size 0 and non-readable
Reviewed-by: forax
2010-09-15 15:13:50 +01:00
Alan Bateman
efa88ff48b 6963828: TEST_BUG: java/nio/channels/FileTransfer.java takes too long (win)
Reviewed-by: chegar
2010-06-25 18:31:41 +01:00
Alan Bateman
670501c6c6 6963027: TEST_BUG: channels and buffer tests need to run in samevm mode
Reviewed-by: ohair, sherman, chegar
2010-06-23 20:19:29 +01:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Alan Bateman
186882959d 6900234: Several NIO tests should be removed from test/ProblemList.txt
Reviewed-by: chegar
2009-11-11 16:22:27 +00:00
Alan Bateman
aecf7417ad 6842687: New I/O: Update Asynchronous I/O API to jsr203/nio2-b101
Reviewed-by: sherman
2009-08-23 12:53:45 +01:00
Alan Bateman
26dc2b8949 6543863: (fc) FileLock.release can deadlock with FileChannel.close
6429910: (fc) FileChannel.lock() IOException: Bad file number, not AsynchronousCloseException
6814948: (fc) test/java/nio/channels/AsynchronousFileChannel/Lock.java failed intermittently
6822643: (fc) AsynchronousFileChannel.close does not invalidate FileLocks

Reviewed-by: sherman
2009-04-15 16:16:35 +01:00
Xiomara Jayasena
6e86513c3a 6754988: Update copyright year
Update for files that have been modified starting July 2008

Reviewed-by: ohair, tbell
2008-10-02 19:58:32 -07:00
Xueming Shen
61dd937d11 6541641: (fc) java/nio/channels/FileChannel/ExpandingMap.java should clean up after itself
Close channel and explicitly de-ref the mapped buffers before exit.

Reviewed-by: alanb
2008-07-16 15:09:24 -07:00
Xueming Shen
35038e62cd 6541631: (fc) java/nio/channels/Filechannel/LongTransferTest.java should clean up after itself
Should close the channel before delete the file

Reviewed-by: alanb
2008-06-27 12:09:37 -07:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00