RFR 15: 8243010: Test support: Customizable Hex Printer

2020-04-16 Thread Roger Riggs
Please review[2] and comment on a new Hex printing utility to support OpenJDK tests. The usefulness of a hex printing has been discussed from time to time with many suggestions as to the API shape and features. To get an idea of the API and features, take a look at the javadoc[1]. It covers the

Re: RFR 15: 8243010: Test support: Customizable Hex Printer

2020-04-17 Thread Roger Riggs
unctionality is already included in that webrev (I might've missed it), the hex printing in and of itself is valuable. -Pavel On 16 Apr 2020, at 20:17, Roger Riggs wrote: Please review[2] and comment on a new Hex printing utility to support OpenJDK tests. The usefulness of a hex print

Re: RFR 15: 8243010: Test support: Customizable Hex Printer

2020-04-17 Thread Roger Riggs
as you go? Best Lance On Apr 16, 2020, at 3:17 PM, Roger Riggs <mailto:roger.ri...@oracle.com>> wrote: Please review[2] and comment on a new Hex printing utility to support OpenJDK tests. The usefulness of a hex printing has been discussed from time to time with many suggestions

Re: RFR 15: 8243010: Test support: Customizable Hex Printer

2020-04-17 Thread Roger Riggs
Hi Pavel, Thanks for the scan of potential replacements. I'll take a look and file followup issues for candidates for cleanup. Some are going to be sensitive to the specific formatting. Roger On 4/17/20 11:36 AM, Pavel Rappo wrote: On 17 Apr 2020, at 15:11, Roger Riggs wrote: Hi Pavel

Re: RFR: 8239365: ProcessBuilder/Basic.java test modifications for AIX execution

2020-04-21 Thread Roger Riggs
Hi Adam, 77-80: Simplify to just two cases, one for error=13 and another for error=2 static final String PERMISSION_DENIED_ERROR_MSG = "(Permission denied|error=13)"; static final String NO_SUCH_FILE_ERROR_MSG = "(No such file|error=2)"; Regards, Roger On 4/21/20 12:45 PM, Adam Farley8 wrote

Re: RFR: 8239365: ProcessBuilder/Basic.java test modifications for AIX execution

2020-04-22 Thread Roger Riggs
e" > To: Adam Farley8 > Cc: core-libs-dev , Roger Riggs > > Date: 21/04/2020 18:29 > Subject: [EXTERNAL] Re: RFR: 8239365: ProcessBuilder/Basic.java test > modifications for AIX execution > > Hi Adam, > > I do not have strong emotions, leave it up to you. But did you

Re: RFR 15: 8243010: Test support: Customizable Hex Printer

2020-04-23 Thread Roger Riggs
Ping... I appreciate the comments about extending the functionality and uses and will take them up as a separate enhancement. A review would be appreciated. Thanks, Roger On 4/16/20 3:17 PM, Roger Riggs wrote: Please review[2] and comment on a new Hex printing utility to support OpenJDK

Re: [15] RFR: 8243664: JavaDoc of CompactNumberFormat points to wrong enum

2020-04-27 Thread Roger Riggs
+1 On 4/27/20 12:36 PM, naoto.s...@oracle.com wrote: Hello, Please review this small doc fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8243664 Here is the diff: --- --- old/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.0 -

Re: RFR: 6415694 Clarification in Javadoc for java.rmi.AlreadyBoundException

2020-05-01 Thread Roger Riggs
+1, BTW, Stuart you are a Reviewer, no need for a 2nd. Roger On 5/1/20 12:02 AM, Stuart Marks wrote: Hi Jay, OK, welcome! I'll sponsor this changeset for you. It's pretty simple, so I'll just paste the exported changeset below. (For complicated changesets, you'll have to ask a sponsor to h

Re: RFR: 8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports - (core libraries)

2020-05-04 Thread Roger Riggs
Hi Michael, Looks good. Maybe just a future cleanup to rename files, since the "...so..." is refering to solaris. src/java.base/unix/native/libjli/java_md_solinux.h src/java.base/unix/native/libjli/java_md_solinux.h Regards, Roger On 5/4/20 4:49 AM, Alan Bateman wrote: On 04/05/2020 06:12

Re: [15]: RFR: 8244245: localizedBy() should override localized values with default values

2020-05-07 Thread Roger Riggs
Hi Naoto, Looks fine with a small source edit below. TestUnicodeExtension.java: Please wrap the excessively long lines; string concatination will put them together for the test. Thanks, Roger On 5/6/20 4:44 PM, naoto.s...@oracle.com wrote: Hello, Please review the fix to the following iss

Re: [15]: RFR: 8244245: localizedBy() should override localized values with default values

2020-05-07 Thread Roger Riggs
Looks good, thanks On 5/7/20 12:06 PM, naoto.s...@oracle.com wrote: Hi Roger, Thank you for the review. Wrapped the long lines as suggested, along with some typo fixes in the comments: https://cr.openjdk.java.net/~naoto/8244245/webrev.01/ Naoto On 5/7/20 7:43 AM, Roger Riggs wrote: Hi

Re: [15] RFR: 8239383: Support for Unicode 13.0

2020-05-13 Thread Roger Riggs
Hi Naoto, Looks fine. Lots of small changes but mostly in the Unicode reference files. Thanks, Roger On 5/7/20 5:59 PM, naoto.s...@oracle.com wrote: Hello, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8239383 Its CSR and proposed changeset are loca

Re: RFR: 8244936: Reduce JNI overhead of accessing FileDescriptor

2020-05-13 Thread Roger Riggs
Hi Claes, Looks fine. Straightfoward since the offiset is already cached for other operations. Thanks, Roger On 5/13/20 11:44 AM, Claes Redestad wrote: Hi, compilers can't see though and optimize away the repeated GetObjectField calls in places such as in the io_util_md.h GET_FD macro: #def

Re: RFR [15] 8245111: Update doc comments for improved processing by the Standard Doclet

2020-05-15 Thread Roger Riggs
Hi Pavel, No problem with the "with" -> "by" changes. javax/naming/NameNotFoundException.java: 55   "initialized" -> "are initialized" java/util/jar/Attributes.java:594   The period was in the correct place.   The second sentence is a separate comment about the use (non-use).  "used for the ex

Re: RFR [15] 8245111: Update doc comments for improved processing by the Standard Doclet

2020-05-15 Thread Roger Riggs
Hi Pavel, Yes, I think that would be an improvement. But its a slippery slope beyond what you originally observed and wanted to fix. Thanks, Roger On 5/15/20 11:59 AM, Pavel Rappo wrote: On 15 May 2020, at 16:53, Roger Riggs wrote: Hi Pavel, No problem with the "with" ->

Re: RFR [15] 8245111: Update doc comments for improved processing by the Standard Doclet

2020-05-15 Thread Roger Riggs
vel On 15 May 2020, at 17:34, Roger Riggs wrote: Hi Pavel, Yes, I think that would be an improvement. But its a slippery slope beyond what you originally observed and wanted to fix. Thanks, Roger On 5/15/20 11:59 AM, Pavel Rappo wrote: On 15 May 2020, at 16:53, Roger Riggs wrote: Hi Pavel,

Re: RFR [15] 8244342: Compilation warnings about unexpected serialization related method signatures.

2020-05-18 Thread Roger Riggs
Hi Joe, Looks good, thanks for the cleanup. Roger On 5/15/20 2:39 PM, naoto.s...@oracle.com wrote: +1 Naoto On 5/15/20 11:35 AM, Lance Andersen wrote: Looks ok joe On May 15, 2020, at 1:54 PM, Joe Wang wrote: Hi, Please review a fix for the compilation warnings. Thanks Roger for the

Re: RFR: 8215401: Add isEmpty default method to CharSequence

2020-05-18 Thread Roger Riggs
Hi Claes, Though it does not look like it could be any simpler, there should probably be a test. Checking consistency with the existing implementations of CharSequence.length() and a custom subtype. Thanks, Roger On 5/18/20 4:48 PM, Claes Redestad wrote: Hi, let's add an isEmpty default m

Re: RFR: 8215401: Add isEmpty default method to CharSequence

2020-05-19 Thread Roger Riggs
Hi Claes, Looks good, Thanks for the test. p.s.  I probably would have used a data provider for the CS cases but its not significant. On 5/19/20 6:37 AM, Claes Redestad wrote: Hi Roger, sure, added Emptiness.java with a few sanity tests. /Claes On 2020-05-19 00:29, Roger Riggs wrote: Hi

Re: Optimize (Linked-)HashMap lookup when backing array is null

2020-05-19 Thread Roger Riggs
Hi, How does the performance degrade when the computation of the hash is non-trivial. For example, with an array as a key or an object with fields that are objects? The original code made a point of computing the hash only once. ??, Roger On 5/19/20 3:21 PM, Claes Redestad wrote: Thanks for

Re: Optimize (Linked-)HashMap lookup when backing array is null

2020-05-19 Thread Roger Riggs
Hi, Right, its only in the case of removing the node because the new value was null. Besides being infrequent, that should not be a problem. Thanks, Roger On 5/19/20 3:56 PM, Christoph Dreis wrote: Hi Roger, How does the performance degrade when the computation of the hash is non-trivial.

Re: [15] RFR: 8239480: Support for CLDR version 37

2020-05-22 Thread Roger Riggs
Looks fine. On 5/20/20 5:31 PM, naoto.s...@oracle.com wrote: Hello, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8239480 The proposed changeset, and the release note draft are located at: https://cr.openjdk.java.net/~naoto/8239480/webrev.00/ https://

Re: [BUG] java.util.Properties.entrySet() does not override java.lang.Object methods since Java 9

2020-05-24 Thread Roger Riggs
Hi Rob, Thanks for the report, an issues has been created: https://bugs.openjdk.java.net/browse/JDK-8245694 Regards, Roger On 5/23/20 3:13 PM, Rob Spoor wrote: Hi, I was working on upgrading a library of mine from Java 8 to 11, and I noticed my unit tests started failing. Some investigation

Re: RFR(S) 8242504: Enhance the system clock to nanosecond precision

2020-05-26 Thread Roger Riggs
Looks good. Thanks to Mark and you for the improvement and testing. On 5/26/20 12:59 AM, David Holmes wrote: bug: https://bugs.openjdk.java.net/browse/JDK-8242504 webrev: http://cr.openjdk.java.net/~dholmes/8242504/webrev/ This work was contributed by Mark Kralj-Taylor: https://mail.openjdk

Re: RFR: 8245677: Optimize lookups in empty HashMap

2020-05-26 Thread Roger Riggs
+1, Looks fine. Should the benchmark be included? Thanks, Roger On 5/25/20 8:12 AM, Jim Laskey wrote: +1 (Copyright date) On May 25, 2020, at 7:02 AM, Claes Redestad wrote: Hi, sponsoring this patch from Christoph Dreis. By pushing down the hash calculation we can optimize lookups in

Re: RFR 15 (S): 8245068: Implement Deprecation of RMI Activation

2020-05-27 Thread Roger Riggs
Hi Stuart, Looks good. rmid.properties: 134;  avoid breaking "have\n been" in to separate lines. I would break after the ",". module-info.java: 35:  "version" -> "release" for consistency across the messages. package-info.java: 41:  "version" -> "release" and "it may" -> "may" to be consist

Re: Sometimes constraints are questionable

2020-05-30 Thread Roger Riggs
Hi Jim, This kind of code exists in other places too, trying to balance preferred grow sizes with necessary ones and implementation limits.  The rationale and design has been raised several times.  That last time it resulting in consolidating similar code into jdk.internalutil.ArraysUppport.n

Re: RFR: 8230743 - StringJoiner does not handle too large strings correctly

2020-06-01 Thread Roger Riggs
HI Jim, StringJoiner.java: 173 and 241:  put the OutOfMemoryException name on the same line as the "new" (all one line). Otherwise looks ok. Thanks, Roger On 6/1/20 3:51 PM, Jim Laskey wrote: Thanks Martin. On Jun 1, 2020, at 4:39 PM, Martin Buchholz wrote: Missing "throw"; We should h

Re: RFR [15] 8238763: ObjectInputStream readUnshared method handling of Records

2020-06-02 Thread Roger Riggs
Hi Chris, Looks good. Thanks, Roger On 6/2/20 12:54 PM, Chris Hegarty wrote: This is a small change to ObjectInputStream, for 8238763 [1], to correctly handle readUnshared for records. Webrev: https://cr.openjdk.java.net/~chegar/8238763/webrev.00/ -Chris. [1] https://bugs.openjdk.java.

Re: RFR: JDK-8230744 Several classes throw OutOfMemoryError without message

2020-06-02 Thread Roger Riggs
Hi Jim, Given the infrequency of the exception messages being used, can we simplify them and/or reuse the strings? The stack trace would usually show what API was being used so I would simplfy the messages to: "exceeds implementation limit" or "size exceeds implementation limit".    Unsyn

Re: RFR: 8246592: Simplify checking of boolean file attributes

2020-06-04 Thread Roger Riggs
Hi Claes, Not a review... You'll need a CSR for the API change. FileSystem.java: You'll need proper javadoc for the new getBooleanAttribute method. 6/11 is Rampdown Phase One  (its a bit late for new APIs). Regards, Roger On 6/4/20 8:58 AM, Claes Redestad wrote: Hi, this patch proposes

Re: RFR: 8246592: Simplify checking of boolean file attributes

2020-06-04 Thread Roger Riggs
Hi Claes, Yep, my mistake, too many publics. Thanks, Roger On 6/4/20 9:25 AM, Claes Redestad wrote: Hi Roger, maybe I've missed something, but java.io.FileSystem is package-private and not part of the public API. Is a CSR really required? /Claes On 2020-06-04 15:22, Roger Riggs wrote

Re: RFR: 8246592: Simplify checking of boolean file attributes

2020-06-04 Thread Roger Riggs
On 2020-06-04 15:26, Alan Bateman wrote: On 04/06/2020 14:22, Roger Riggs wrote: Hi Claes, Not a review... You'll need a CSR for the API change. FileSystem.java: You'll need proper javadoc for the new getBooleanAttribute method. FileSystem is not a public class so it's not a

Re: RFR: 8246592: Simplify checking of boolean file attributes

2020-06-05 Thread Roger Riggs
hasBooleanAttributes(File f, int attributes) { 120 return (getBooleanAttributes(f) & attributes) == attributes; 121 } Thanks, Roger On 6/4/20 2:24 PM, Claes Redestad wrote: Hi Roger, On 2020-06-04 18:05, Roger Riggs wrote: Hi Claes, The code looks ok but I would rename the new metho

Re: RFR: 8246592: Simplify checking of boolean file attributes

2020-06-05 Thread Roger Riggs
-05 11:23, Roger Riggs wrote: Hi Claes, Also, since the requested attribute is a bit mask the test should be that all of the attributes are present, not just some, iIt might prevent a mistake down the line. Probably the method name and argument names should be plural. Line: 120: should be 119

Re: 8246632: StringConcatFactory::makeConcatWithConstants no longer throws NullPointerException when an unexpected constant is null

2020-06-08 Thread Roger Riggs
Hi Claes, The new method name "argumentMistmatch" should be "argumentMismatch".  ("Mis" vs "Mist"). The rest looks fine. Roger On 6/8/20 10:51 AM, Claes Redestad wrote: Hi, JDK-8246152 triggered a failure in a JCK test that expects a NPE rather than a StringConcatException. We can keep th

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-09 Thread Roger Riggs
Hi Peter, I'd like to understand the scope and impact of the problem before jumping to a solution. For specific applications, overriding ObjectInputStream.resolveClass to handle the class lookup can handle the case as expeditiously as is necessary. What application uses cases are impacted and

Re: [15] RFR: 8246662: Test java/time/test/java/time/format/TestUnicodeExtension.java failed on japanese locale.

2020-06-09 Thread Roger Riggs
Hi Naoto, Since the default locale is being changed even briefly, the test should be run in /othervm. Add:  @run testng/othervm ... DateTimeFormatter:1498:    Can the optimization be retained in the case where z.equals(zone)?    Move it down to 1508+ and check the zone vs z. Thanks, Roger

Re: [15] RFR: 8246662: Test java/time/test/java/time/format/TestUnicodeExtension.java failed on japanese locale.

2020-06-09 Thread Roger Riggs
Hi Naoto, Looks fine. fyi,  Objects.equals(a,b) can replace DateTimeFormatter: 1510-1511. Thanks, Roger On 6/9/20 1:01 PM, naoto.s...@oracle.com wrote: Hi Roger, Thanks for the review. On 6/9/20 8:52 AM, Roger Riggs wrote: Hi Naoto, Since the default locale is being changed even briefly

Re: [15] RFR: 8246662: Test java/time/test/java/time/format/TestUnicodeExtension.java failed on japanese locale.

2020-06-09 Thread Roger Riggs
Hi, All java.time instances are immutable and described as value based. Identity based operations are defined as unpredictable and to be avoided. (That specific text was omitted from DateTimeFormatter) The test uses .equals so it is not depending on identity. Roger On 6/9/20 3:10 PM, naoto.s.

RFR 8247274: (test) HexPrinter cleanup

2020-06-09 Thread Roger Riggs
Please review cleanup to the test support for jdk.test.lib.hexprinter.HexPrinter. Correct issues with the test support for jdk.test.lib.hexdump.HexPrinter.  - Correct the swapped definitions of Formatters.ASCII and PRINTABLE    Printable should always return a single character,    ASCII provides

Re: RFR 8247274: (test) HexPrinter cleanup

2020-06-10 Thread Roger Riggs
Thanks Lance On 6/10/20 12:53 PM, Lance Andersen wrote: Hi Roger, I think your changes look fine. Best Lance On Jun 9, 2020, at 6:47 PM, Roger Riggs <mailto:roger.ri...@oracle.com>> wrote: Please review cleanup to the test support for jdk.test.lib.hexprinter.HexPrinter. Corre

Re: Final call Re: RFR: JDK-8230744 Several classes throw OutOfMemoryError without message

2020-06-10 Thread Roger Riggs
Hi Jim, In Unsafe.java: 632: the "Unable to allocate 98494837395: doesn't read very well. Please add " bytes" to the end. I would probably drop "array" from all the messages but at least in the String* cases. As Martin notes, the array is an implementation detail. (And i still prefer "implem

Re: RFR: 8246721: java/util/Locale/LocaleProvidersRun.java failed on Windows platforms.

2020-06-10 Thread Roger Riggs
Hi Naoto, The fix looks fine. Thanks, Roger On 6/10/20 3:49 PM, naoto.s...@oracle.com wrote: Hello, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8246721 The proposed changeset is located at: http://cr.openjdk.java.net/~naoto/8246721/webrev.00/ Th

Re: RFR: 8245448: Remove minimum 4 digit requirement from Year.parse()

2020-06-12 Thread Roger Riggs
Hi Naoto, Yes, looks good. Roger On 6/12/20 1:06 PM, Lance Andersen wrote: Hi Naoto, This looks fine and looks like you are set with reviewers on your CSR Best Lance On Jun 12, 2020, at 12:31 PM, naoto.s...@oracle.com wrote: Hello, Please review the fix to the following issue: https://

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-12 Thread Roger Riggs
to decide whether to use the Java platform for particular tasks, and it would be unfortunate if we did not make the Java platform as good as it could be. ... peter -Original Message- From: core-libs-dev on behalf of Roger Riggs Organization: Java Products Group

RFR 15 8247521: (test) jdk/test/lib/hexdump/HexPrinterTest.java fails on windows

2020-06-15 Thread Roger Riggs
Please review a test change of the test library HexPrinter. It should be comparing against the System.lineSeparator. diff --git a/test/lib-test/jdk/test/lib/hexdump/HexPrinterTest.java b/test/lib-test/jdk/test/lib/hexdump/HexPrinterTest.java --- a/test/lib-test/jdk/test/lib/hexdump/HexPrinterT

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-16 Thread Roger Riggs
VM.latestUserDefinedLoader:390 caught my eye because it forces the AppClassLoader. It assumes that scanning the stack would find and return the AppClassLoader, not so in all cases. Regards, Roger ... peter -----Original Message- From: Roger Riggs Organizatio

Re: RFR: 8247782: typos in java.math

2020-06-17 Thread Roger Riggs
Looks fine. On 6/17/20 2:44 PM, Martin Buchholz wrote: 8247782: typos in java.math https://cr.openjdk.java.net/~martin/webrevs/jdk/math-spelling/ https://bugs.openjdk.java.net/browse/JDK-8247782

Re: RFR: 8247706: Unintentional use of new Date(year...) with absolute year

2020-06-17 Thread Roger Riggs
Hi Martin, Looks fine, I'm embarrassed by the one in the java.time tests, we should have known better. Thanks, Roger On 6/17/20 3:22 PM, Martin Buchholz wrote: No actual bugs fixed, but good to stamp out all instances of new Date(1970) 8247706: Unintentional use of new Date(year...) with

Re: RFR [15] 8247789: Remove use of reflection from test/jdk/java/io/Serializable/records/StreamRefTest.java

2020-06-18 Thread Roger Riggs
Hi Chris, It may be prudent to check that the current value in the byte array is the one you expect before changing it. That would help catch tests if something else changes the contents of the stream. Otherwise looks good. Thanks, Roger On 6/18/20 9:28 AM, Chris Hegarty wrote: This is

Re: RFR [15] 8247789: Remove use of reflection from test/jdk/java/io/Serializable/records/StreamRefTest.java

2020-06-18 Thread Roger Riggs
Thanks Chris, Looks good. On 6/18/20 10:25 AM, Chris Hegarty wrote: On 18 Jun 2020, at 14:56, Roger Riggs wrote: Hi Chris, It may be prudent to check that the current value in the byte array is the one you expect before changing it. That would help catch tests if something else changes

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-19 Thread Roger Riggs
al Message----- From: Roger Riggs Organization: Java Products Group, Oracle Date: Tuesday, June 16, 2020 at 7:14 AM To: "Peter Kessler (Open Source)" , "core-libs-dev@openjdk.java.net" Subject: Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(Obj

Re: java.util.Base64 accepts non-canonical encodings

2020-06-23 Thread Roger Riggs
Hi Raffaello, I think the concern over accepting non-canonical encodings would be compatibility. It would rude to implement the strictness and have applications start failing. But it is likely an oversight since existing code checks for other invalid encodings. Do any of the existing tests f

Re: Exceptions priority in InputStream.read(byte[], int, int)

2020-06-23 Thread Roger Riggs
Hi Raffaello, Exceptions related to the arguments should be highest priority so they are not obscured by any more dynamic state related to the stream. There's no specific order between checks of the arguments, though in this case the NPE would naturally occur before IOOBE. There are more complex

Re: java.util.Base64 accepts non-canonical encodings

2020-06-23 Thread Roger Riggs
Hi, This is a case where having some more interoperability testing could be informative though there are likely many adhoc Base64 encoders and its not practical to test against them. Introducing a new mode or option creates an undesirable fuzzyness to the API. It won't help existing uses w

Re: [15] RFR JDK-8247785: Small clarification to the javadoc about builtin class loaders

2020-06-23 Thread Roger Riggs
Hi Mandy, There may be a missing "to" in: + * Platform classes are visible the platform class loader ++ * Platform classes are visible *via* the platform class loader The second change seems to be self referential using "parent" to define itself. And pre-existing in the description

Re: [15] RFR JDK-8247785: Small clarification to the javadoc about builtin class loaders

2020-06-24 Thread Roger Riggs
Hi Mandy, I'm fine with this. Roger On 6/23/20 5:42 PM, Mandy Chung wrote: On 6/23/20 12:01 PM, Roger Riggs wrote: Hi Mandy, There may be a missing "to" in: + * Platform classes are visible the platform class loader ++ * Platform classes are visible *via* the

Re: request for review JDK-8211290

2020-06-30 Thread Roger Riggs
Hi Ivan, In test/jdk/java/util/jar/JarFile/JarBacktickManifest.java, I don't think you want the new blank line after the removed @summary. Otherwise, looks fine. Roger On 6/30/20 5:15 PM, Brent Christian wrote: Hi, Ivan The changes look fine to me. Please see that an automated test run th

Re: contributing to JDK-8222187: java.util.Base64.Decoder stream adds unexpected null bytes at the end

2020-07-02 Thread Roger Riggs
Hi Raffaello, There is way more code changed here than is needed to fix the bug. General enhancement should be separated from bug fixes. It makes it easier to review to see the bug was fixed and easier to separately review other code to see that there are no unexpected changes. If some of the

Re: RFR: JDK-8222187: java.util.Base64.Decoder stream adds unexpected null bytes at the end

2020-07-06 Thread Roger Riggs
Hi Raffaello, I'm still not sure it needed this much of a re-write to fix the bug; It will take some time to look at the changes. Regardless, OpenJDK conventions call for following the style of the existing code. Your new comments follow neither the existing convention to use "//..." comments

Re: RFR: JDK-8222187: java.util.Base64.Decoder stream adds unexpected null bytes at the end

2020-07-08 Thread Roger Riggs
llo [1] https://www.oracle.com/java/technologies/javase/codeconventions-comments.html On 2020-07-06 20:17, Roger Riggs wrote: Hi Raffaello, I'm still not sure it needed this much of a re-write to fix the bug; It will take some time to look at the changes. Regardless, OpenJDK conv

RFR 15: 8217475: Unexpected StackOverflowError in "process reaper" thread

2020-07-08 Thread Roger Riggs
Please reveiw a change to increase the size of the Process Reaper stack for debug builds. This intermittent issue can be traced to the stack shadow page size being larger in debug builds than in release builds. The problem has only been spotted in debug builds. diff a/src/java.base/share/class

Re: RFR 15: 8217475: Unexpected StackOverflowError in "process reaper" thread

2020-07-08 Thread Roger Riggs
E. harder: banish SOE in pure java code entirely by loomishly moving continuations to a larger stack. On Wed, Jul 8, 2020 at 1:54 PM Roger Riggs wrote: Please reveiw a change to increase the size of the Process Reaper stack for debug builds. This intermittent issue can be traced to the stack sh

Re: RFR 15: 8217475: Unexpected StackOverflowError in "process reaper" thread

2020-07-09 Thread Roger Riggs
Roger, Looks good to me. Thanks, David On 9/07/2020 6:51 am, Roger Riggs wrote: Please review a change to increase the size of the Process Reaper stack for debug builds. This intermittent issue can be traced to the stack shadow page size being larger in debug builds than in release builds. The pr

Re: Fwd: RFR: JDK-8249258 java/util/StringJoiner/StringJoinerTest.java failed due to OOM (JDK 15)

2020-07-14 Thread Roger Riggs
Looks good. Though it does seem like the VM should have been able to reclaim enough memory between tests to not need to throw OOME. Thanks, Roger On 7/14/20 2:23 PM, Daniel D. Daugherty wrote: On 7/14/20 2:09 PM, Jim Laskey wrote: Adding Daniel Begin forwarded message: *From: *Jim Laske

Re: RFR: 8248655: Support supplementary characters in String case insensitive operations

2020-07-15 Thread Roger Riggs
Hi Naoto, Given the extra tests in the body of the loop, I think its worth finding or creating a JMH test for this and checking the performance. With performance in mind, I would try to fall back to the UC/LC conversions only when the bytes don't match.  See java.util.Arrays.mismatch(byte[],

Re: RFR: JDK-8222187: java.util.Base64.Decoder stream adds unexpected null bytes at the end

2020-07-15 Thread Roger Riggs
Hi Raffaello, Base64.java: 2: Please update 2nd copyright year to 2020 leftovers(): 996: "&" the shortcutting && is more typical in a condition. 997: the -= is buried in an expression and a reader might miss it. 1053:  "can be reallocated to other vars":  not a useful comment, reflecting on o

Re: RFR: 8249543: Force DirectBufferAllocTest to run with -ExplicitGCInvokesConcurrent

2020-07-16 Thread Roger Riggs
Hi, RMI DGC relies only on WeakReferences so unless that is disabled, RMI should not see any difference. The tests do provoke GC to run, so if it doesn't eventually clear weak refs (within a timeout) that would fail. Thanks, Roger On 7/16/20 3:09 AM, Alan Bateman wrote: On 15/07/2020 20:47,

Re: RFR: JDK-8222187: java.util.Base64.Decoder stream adds unexpected null bytes at the end

2020-07-21 Thread Roger Riggs
. I have also run the JCK tests in this area as well as mach5 tiers1-3 (which I believe Roger has also) Best Lance On Jul 15, 2020, at 5:44 PM, Raffaello Giulietti <mailto:raffaello.giulie...@gmail.com>> wrote: Hi Roger, On 2020-07-15 22:21, Roger Riggs wrote: Hi Raffaello, Base6

Re: RFR: 8248655: Support supplementary characters in String case insensitive operations

2020-07-21 Thread Roger Riggs
Hi Naoto, StringUTF16.java: 343, 348: The masking and comparisons seem awkward. I'd suggest just negating the value and testing for < 0 to flag the less usual case. If you continue with the flag bit, define your own static final constant for that bit; It looks odd to be using Integer.MIN_VALU

RFR 8249217: Unexpected StackOverflowError in "process reaper" thread still happens

2020-07-22 Thread Roger Riggs
Please review a change to the Process reaper thread initialization to preemptively make sure classes ThreadLocalRandom and ConcurrentHashMap are initialized. From the stack overflow failures, it seems that the classes have not been initialized before they are used during processing the terminat

Re: RFR 8249217: Unexpected StackOverflowError in "process reaper" thread still happens

2020-07-22 Thread Roger Riggs
class ensures initialization of the class. Just loading. But I think CHM is already initialized at that time as it is used in ClassLoader to maintain class loading locks (per class name). Regards, Peter On 7/22/20 4:51 PM, Roger Riggs wrote: Please review a change to the Process reaper t

Re: RFR JDK-8022795: Method.isVarargs of dynamic proxy generated method to match the proxy interface method

2020-07-22 Thread Roger Riggs
Hi Mandy, Looks fine. Roger On 7/22/20 3:04 PM, Mandy Chung wrote: Webrev: http://cr.openjdk.java.net/~mchung/jdk16/webrevs/8022795/webrev.00/ A small improvement to the dynamic proxy generated method to have ACC_VARARGS matching the method declared in a proxy interface if set. If there are t

Re: RFR: 8248655: Support supplementary characters in String case insensitive operations

2020-07-22 Thread Roger Riggs
Hi Naoto, Looks fine. (with Joe's suggestion) On 7/22/20 4:20 PM, Joe Wang wrote: Hi Naoto, The change looks good to me. "supLower" is indeed super slow :-) The only minor comment I have is that the compareCodePointCI method performs toUpperCase unconditionally. That's not a problem for the

Re: RFR JDK-8022795: Method.isVarargs of dynamic proxy generated method to match the proxy interface method

2020-07-22 Thread Roger Riggs
Hi Mandy, Looks good. On 7/22/20 6:40 PM, Mandy Chung wrote: Please review the CSR: https://bugs.openjdk.java.net/browse/JDK-8249939 Thanks Mandy On 7/22/20 1:55 PM, Joe Darcy wrote: Hi Mandy, The behavior change looks okay; please file a CSR for this too. Thanks, -Joe On 7/22/2020 12:04

Re: RFR 8249217: Unexpected StackOverflowError in "process reaper" thread still happens

2020-07-22 Thread Roger Riggs
sLoader to maintain class loading locks (per class name). Regards, Peter On 7/22/20 4:51 PM, Roger Riggs wrote: Please review a change to the Process reaper thread initialization to preemptively make sure classes ThreadLocalRandom and ConcurrentHashMap are initialized. From the stack overflo

Re: RFR 8249217: Unexpected StackOverflowError in "process reaper" thread still happens

2020-07-22 Thread Roger Riggs
_native_entry(Thread*)+0x116 On 7/22/20 9:16 PM, David Holmes wrote: Hi Roger, On 23/07/2020 12:51 am, Roger Riggs wrote: Please review a change to the Process reaper thread initialization to preemptively make sure classes ThreadLocalRandom and ConcurrentHashMap are initialized. I don't

Re: RFR 8249217: Unexpected StackOverflowError in "process reaper" thread still happens

2020-07-22 Thread Roger Riggs
he problem intermittently but it would take a HS engineer to figure it out. For now, all I have is an avoidence attempt. Thanks, Roger On 7/22/20 9:46 PM, David Holmes wrote: On 23/07/2020 11:27 am, Roger Riggs wrote: Hi David, It took some digging in the hs_err files and looking at a core dump to

Re: RFR 8249217: Unexpected StackOverflowError in "process reaper" thread still happens

2020-07-23 Thread Roger Riggs
Webrev updated with Martin's suggestion: http://cr.openjdk.java.net/~rriggs/webrev-stackoverflow-8249217-2/ Thanks, Roger On 7/22/20 8:35 PM, Martin Buchholz wrote: Roger: You're absolutely right! I should have looked. On Wed, Jul 22, 2020 at 5:25 PM Roger Riggs wrote: Hi Marti

RFR 8250235: java/lang/invoke/lambda/LambdaFileEncodingSerialization.java should be on the problem list

2020-07-23 Thread Roger Riggs
Please review adding an intermittent test to the ProblemList. The test java/lang/invoke/lambda/LambdaFileEncodingSerialization.java has been failing intermittently and fairly frequently. [1] diff a/test/jdk/ProblemList.txt b/test/jdk/ProblemList.txt --- a/test/jdk/ProblemList.txt +++ b/test/jd

Re: RFR(T): 8250236: ProblemList java/lang/invoke/lambda/LambdaFileEncodingSerialization.java on linux-x64

2020-07-23 Thread Roger Riggs
Looks good, thanks On 7/23/20 4:30 PM, Daniel D. Daugherty wrote: Accidentally pushed send before I was done. Please ignore the previous email... Greetings, I'm making another pass at reducing the noise in the JDK16 CI. There are currently 34 sightings of this test failure since I filed the

Re: RFR 8250235: java/lang/invoke/lambda/LambdaFileEncodingSerialization.java should be on the problem list

2020-07-23 Thread Roger Riggs
f Technical Staff |+1.781.442.2037 Oracle Java Engineering 1 Network Drive Burlington, MA 01803 lance.ander...@oracle.com <mailto:lance.ander...@oracle.com> Sent from my iPad On Jul 23, 2020, at 4:28 PM, Roger Riggs wrote: Please review adding an intermittent test to the ProblemList. T

Re: RFR 8233048: WeekFields.ISO is not a singleton

2020-07-30 Thread Roger Riggs
Looks good Naoto. Thanks, Roger On 7/30/20 5:53 PM, naoto.s...@oracle.com wrote: Hi, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8233048 The proposed chageset is located at: https://cr.openjdk.java.net/~naoto/8233048/webrev.00/ java.time.temporal.

Re: RFR [16/java.xml] 8246816: XMLGregorianCalendar.hashCode() produces far too many identical hashes

2020-08-06 Thread Roger Riggs
Hi Joe, Looks fine. Roger On 8/5/20 7:37 PM, Joe Wang wrote: Hello, Please review a fix for the hashCode generation. JBS: https://bugs.openjdk.java.net/browse/JDK-8246816 webrev: http://cr.openjdk.java.net/~joehw/jdk16/8246816/webrev/ Thanks, Joe

Re: RFR [16/java.xml] 8246816: XMLGregorianCalendar.hashCode() produces far too many identical hashes

2020-08-06 Thread Roger Riggs
+1 On 8/6/20 4:18 PM, naoto.s...@oracle.com wrote: Hi Joe, thank you for looking it into further. Yes, I agree the chances of collision is very rare, as sub-millisecond difference in two objects. So fine with the version 01. Naoto On 8/6/20 12:18 PM, Joe Wang wrote: Thanks Naoto, Roger for

Re: RFR [16/java.xml] 8246816: XMLGregorianCalendar.hashCode() produces far too many identical hashes

2020-08-07 Thread Roger Riggs
on version 01. Best, Joe On 8/6/20 1:29 PM, Roger Riggs wrote: +1 On 8/6/20 4:18 PM, naoto.s...@oracle.com wrote: Hi Joe, thank you for looking it into further. Yes, I agree the chances of collision is very rare, as sub-millisecond difference in two objects. So fine with the version 01. Na

Re: RFR: 8251499: no-placeholder compact number patterns throw IllegalArgumentException

2020-08-18 Thread Roger Riggs
Hi Naoto, I think the issue would benefit from a comment describing the solution. Its not clear how the code addresses the issue. Thanks, Roger On 8/17/20 7:42 PM, naoto.s...@oracle.com wrote: Hi Joe, It turned out that the previous fix did not address plural format cases. That means that j

Re: RFR: 8251499: no-placeholder compact number patterns throw IllegalArgumentException

2020-08-19 Thread Roger Riggs
Hi Naoto, CompactNumberFormat.java: 269: The field "placeHolders" should be named consistently with the other holders of Patterns.   -> placeHolderPatterns 1632: missing space before ":" 2390:  I'm not sure why the stream processing is preferable to a direct forEach(...). TestCompactPatte

Re: Fix for Javadoc errors in java.base

2020-08-19 Thread Roger Riggs
Looks fine Julia On 8/18/20 1:02 PM, Julia Boes wrote: Hi, The two changes below still need to be reviewed. Any takers? Cheers, Julia --- old/src/java.base/share/classes/java/lang/invoke/AbstractValidatingLambdaMetafactory.java2020-08-14 23:55:41.953638446 +0530 +++ new/src/java.base/sha

Re: RFR(M): 8248188: [PATCH] Add HotSpotIntrinsicCandidate and API for Base64 decoding

2020-08-19 Thread Roger Riggs
Hi Corey, For changes obviously performance motivated, it is conventional to run a JMH perf test to demonstate the improvement and prove it is worthwhile to add code complexity. I don't see any existing Base64 JMH tests but they would be in the repo below or near:     test/micro/org/openjdk/

Re: RFR: 8251499: no-placeholder compact number patterns throw IllegalArgumentException

2020-08-19 Thread Roger Riggs
33 AM, Roger Riggs wrote: Hi Naoto, CompactNumberFormat.java: 269: The field "placeHolders" should be named consistently with the other holders of Patterns.    -> placeHolderPatterns 1632: missing space before ":" 2390:  I'm not sure why the stream processing i

RFR 8251989: Hex encoder and decoder utility

2020-08-19 Thread Roger Riggs
Please review a java.util.Hex API to encode and decode hexadecimal strings to and from byte arrays. Within the JDK and JDK tests there are multiple implementations to encode and decode hexadecimal strings to byte arrays. Hex encoders and decoders support upper or lower case hexadecimal charact

Re: Optimize sun.invoke.util.BytecodeDescriptor.unparse

2020-08-20 Thread Roger Riggs
Hi Chris, Inlining and simplifying unparseSig(cl, sb) seems straightforward. Though I wonder if performs differently than just calling t.descriptorString()? The first action of Class.descriptorString is to check for primitives and return the basicTypeString and if not a primitive it calls C

Re: RFR 8251989: Hex encoder and decoder utility

2020-08-20 Thread Roger Riggs
Hi Chris, Thanks for the comments, I'll make the updates suggested. Roger On 8/20/20 11:33 AM, Chris Hegarty wrote: On 19 Aug 2020, at 22:14, Roger Riggs wrote: .. JavaDoc: http://cr.openjdk.java.net/~rriggs/hex-javadoc/java.base/java/util/Hex.html I like it Roger, very nice. A few

Re: RFR 8251989: Hex encoder and decoder utility

2020-08-20 Thread Roger Riggs
Hi Raffaello, Will do, an oversight in updating the example. Thanks, Roger On 8/20/20 12:46 PM, Raffaello Giulietti wrote: Hi Roger, in the examples in the javadoc you might want to correct the first argument to Hex.encoder and Hex.decoder to "," to be consistent with the narrative. Gre

Re: Optimize sun.invoke.util.BytecodeDescriptor.unparse

2020-08-20 Thread Roger Riggs
Hi Christoph, Looks good. Note that Claes added the cases for Object.class and int.class to maximize the performance of those common cases. I'll sponsor the change. Thanks, Roger On 8/20/20 2:01 PM, Christoph Dreis wrote: Hi Roger, thanks for taking a look! Though I wonder if performs di

Re: RFR 8251989: Hex encoder and decoder utility

2020-08-20 Thread Roger Riggs
e(SB, byte[])? Then we don’t need to break the chain when appending many different things to a StringBuilder. Also, are prefix and suffix really useful? One can easily add them. Thanks, Max On Aug 19, 2020, at 5:14 PM, Roger Riggs wrote: Please review a java.util.Hex API to encode and decode h

Re: RFR 8251989: Hex encoder and decoder utility

2020-08-20 Thread Roger Riggs
Hi Mark, On 8/20/20 3:10 PM, mark.reinh...@oracle.com wrote: 2020/8/19 14:14:56 -0700, roger.ri...@oracle.com: Please review a java.util.Hex API to encode and decode hexadecimal strings to and from byte arrays. JavaDoc: http://cr.openjdk.java.net/~rriggs/hex-javadoc/java.base/java/util/Hex.htm

  1   2   3   4   5   6   7   8   9   10   >