163 Commits

Author SHA1 Message Date
Andrew Dinn
772ad03cb5 8224042: Add private alignDown method to MappedByteBuffer
Use alignDown method to round addresses down to page boundary

Reviewed-by: stuefe, mikael, alanb
2019-05-16 15:45:46 +01:00
Andrew Dinn
2b55e4834e 8221696: MappedByteBuffer.force method to specify range
Overload MappedByteBuffer.force to accept index and length arguments

Reviewed-by: dfuchs, alanb, bpb
2019-04-25 17:27:37 +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
Joe Darcy
53a0327f22 8223178: Improve FileSystems.newFileSystem example with map factory methods
Reviewed-by: alanb, clanger, bpb
2019-05-03 14:09:19 -07:00
Lance Andersen
5a4cef05d6 8218875: Add new FileSystems.newFileSystem methods
Reviewed-by: rriggs, alanb, clanger, dfuchs
2019-05-02 17:08:03 -04: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
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
Brian Burkhalter
7211761cab 8219876: (bf) Improve IndexOutOfBoundsException messages in $Type$Buffer classes
Reviewed-by: alanb, rriggs
2019-03-15 16:24:07 -07:00
Brian Burkhalter
e9cb99cbe4 8220614: (bf) Buffer absolute slice methods should use Objects.checkFromIndexSize()
Reviewed-by: alanb, igerasim, rriggs
2019-03-14 09:43:18 -07:00
Brian Burkhalter
a54066705f 8219597: (bf) Heap buffer state changes could provoke unexpected exceptions
Reviewed-by: alanb, rriggs
2019-03-13 11:12:22 -07:00
Brian Burkhalter
fad1f059b0 5071718: (bf) Add ByteBuffer.slice(int offset, int length)
Reviewed-by: alanb, bchristi, darcy, rriggs
2019-02-28 12:05:59 -08:00
Brian Burkhalter
24c70fcf88 8048192: (bf) Out of direct buffer memory message should include the limits
Reviewed-by: alanb, rriggs
2019-02-22 10:13:34 -08:00
Brian Burkhalter
b24f8ba2ec 8011135: (bf) CharBuffer.put(String) is slow because of String.charAt() call for each char
Reviewed-by: alanb, redestad
2019-02-22 10:13:33 -08:00
Brian Burkhalter
315b7d0399 5029431: (bf) Add absolute bulk put and get methods
Reviewed-by: alanb, darcy, chegar, rriggs
2019-02-20 10:57:22 -08:00
Brian Burkhalter
47ccdad735 8065262: (bf spec) CharBuffer.chars() should make it clearer that the sequence starts from the buffer position
Reviewed-by: alanb, darcy, rriggs
2019-02-19 13:05:16 -08:00
Brian Burkhalter
5c5d27962a 8215467: Files.isHidden should return true for hidden directories on Windows
Reviewed-by: alanb, bchristi, darcy
2019-01-18 09:33:13 -08:00
Claes Redestad
a3df1d618e 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
2018-12-13 15:31:05 +01:00
Martin Buchholz
7212bf0a77 8213406: (fs) More than one instance of built-in FileSystem observed in heap
Reviewed-by: alanb, cushon, weijun
2018-11-28 14:28:28 -08:00
Joe Darcy
5d1cc7fc01 8213911: Use example.com in java.net and other examples
Reviewed-by: prappo, chegar, rriggs, mullan
2018-11-27 11:28:47 -08:00
Pavel Rappo
8c361a3e74 8213490: Networking area typos and inconsistencies cleanup
Reviewed-by: alanb, chegar, dfuchs
2018-11-13 12:24:34 +00:00
Joe Wang
a567796533 8202285: (fs) Add a method to Files for comparing file contents
Reviewed-by: alanb, rriggs, smarks, bpb, dfuchs, weijun, igerasim
2018-11-08 09:50:54 -08:00
Mandy Chung
9ffe7e1205 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
2018-11-06 10:01:16 -08:00
Ivan Gerasimov
2ae27da3bc 8200381: Typos in javadoc - missing verb "be" and alike
Reviewed-by: lancea, darcy, wetmore
2018-10-02 10:19:07 -07:00
Brian Burkhalter
29a20e13c4 8210817: Minor typo in java.nio.file.attribute package summary
Reviewed-by: dfuchs, alanb
2018-09-18 13:18:54 -07:00
Brian Burkhalter
b16e5584ab 8210741: Typo in Java API documentation of java.nio.file.Paths
Reviewed-by: alanb, rriggs
2018-09-14 09:00:22 -07:00
Ivan Gerasimov
1c9dfca05b 8210285: CharsetDecoder/Encoder's constructor does not reject NaN
Reviewed-by: sherman, smarks, alanb, martin, darcy
2018-09-06 12:10:59 -07:00
Brian Burkhalter
ba1d068078 8210279: (bf) Remove unused package private method java.nio.Buffer.truncate()
Reviewed-by: alanb
2018-09-04 09:07:06 -07:00
Alan Bateman
81af5289e9 8210341: (fs) Typos in PosixFileAttributeView javadoc
Reviewed-by: dfuchs
2018-09-04 11:35:35 +01:00
Brian Burkhalter
52f2eca5d9 8193822: Remove unused newDirectByteBuffer and truncate methods from buffer classes
Reviewed-by: alanb, psandoz
2018-08-08 09:25:10 -07:00
Florian Weimer
cc248634a1 8208362: (bf) Long chains created by direct Buffer::slice
Reviewed-by: mr, psandoz, alanb
2018-08-06 14:55:04 -07:00
Claes Redestad
173732afaa 8207235: ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class) throws NPE
Reviewed-by: alanb
2018-07-13 18:39:11 +02:00
Joe Wang
e5ac84c7b0 8205058: (fs) Files read/writeString should throw CharacterCodingException instead of IOException with an IllegalArgumentException as cause
Reviewed-by: sherman, alanb, lancea
2018-06-27 09:31:51 -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
Vivek Deshpande
a8a82bb0ba 8205194: Improve the Array Comparison when there is mismatch at first element
Perform the first element comparison before the call to vectorizedMismatch method

Reviewed-by: psandoz, rriggs, igerasim
2018-06-22 12:51:49 -07:00
Michael Skells
df509b1b16 8199124: (fs) Reduce allocation for file system methods that are invoked with no open options
Reviewed-by: alanb
2018-06-21 11:10:55 -07: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
Vivek Theeyarath
df2f01daf1 8202216: Add Buffer mismatch methods
Reviewed-by: plevart, psandoz
2018-06-14 23:09:11 -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
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
Martin Buchholz
bb34027591 8202397: Typo in X-Buffer javadoc
Reviewed-by: psandoz
2018-05-02 11:19:12 -07: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
Claes Redestad
9ab38159e8 8201494: Avoid early initialization of java.nio.Bits
Reviewed-by: rriggs, alanb
2018-04-12 17:23:32 +02:00
Claes Redestad
c40af49970 8201179: Regression due loading java.nio.charset.StandardCharsets during bootstrap
Reviewed-by: sherman, martin
2018-04-10 16:16:34 +02:00
Joe Wang
dd67e0fa16 8199176: Accessibility issues in java.base docs
Reviewed-by: lancea, alanb, jjg, rriggs
2018-04-02 16:39:17 -07: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
Brian Burkhalter
9e3d8fd230 8194746: (fs) Add equivalents of Paths.get to Path interface
Copy Paths.get() methods to Path.get() methods and have former call latter

Reviewed-by: alanb, forax, chegar, psandoz
2018-03-22 12:30:47 -07: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
Ben Walsh
de3604ea0c 8199462: Use Reference.reachabilityFence in direct ByteBuffer methods
Reviewed-by: psandoz, vlivanov, plevart
2018-03-12 16:09:18 -07:00