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

2020-05-04 Thread Brent Christian
Hi, Looks fine to me. I have just one minor observation: src/java.base/share/native/libjli/emessages.h *** 92,102 #define JRE_ERROR5 "Error: Failed to start a %d-bit JVM process from a %d-bit JVM." ! #define JRE_ERROR6 "Error: Verify all necessary Java SE components have bee

Re: 6202130: Need to handle UTF-8 values and break up lines longer than 72 bytes

2020-05-08 Thread Brent Christian
Hi, Philipp. Sorry for the further delay. Just to step back a bit: The current manifest-writing behavior dates back to JDK 1.2 (at least), so compatibility is an overriding concern. It is unfortunate that multi-byte characters weren't better accounted for in the placement of line breaks fro

Re: JDK-8226810: An other case and a small change suggestion

2020-05-08 Thread Brent Christian
On 5/7/20 5:50 AM, Alan Bateman wrote: On 07/05/2020 12:37, Johannes Kuhn wrote: : In the end, I don't know what causes the bug, or how I can replicate it. I think I did find a likely suspect. > Good sleuthing. I don't what the conditions are for GetLocaleInfo to fail but it does look like th

Re: RFR: 8244624: Improve handling of JarFile META-INF resources

2020-05-11 Thread Brent Christian
Looks good, Claes. Just one small question: src/java.base/share/classes/java/util/jar/JarFile.java 759 } catch (IOException | IllegalArgumentException ex) { Why the addition of IllegalArgumentException ? -Brent On 5/10/20 2:07 PM, Claes Redestad wrote: Hi Martin, On 2020-05-10 21

RFR: 8244767 - Potential non-terminated string in getEncodingInternal() on Windows

2020-05-11 Thread Brent Christian
Hi, Please review this small fix in Windows native code: Bug: https://bugs.openjdk.java.net/browse/JDK-8244767 Webrev: http://cr.openjdk.java.net/~bchristi/8244767/webrev-00/ As reported on this thread[1], the getEncodingInternal() function has a potential unterminated string in the case th

Re: JDK-8226810: An other case and a small change suggestion

2020-05-11 Thread Brent Christian
20 7:47 AM, Johannes Kuhn wrote: On 09-May-20 1:27, Brent Christian wrote: On 5/7/20 5:50 AM, Alan Bateman wrote: On 07/05/2020 12:37, Johannes Kuhn wrote: : In the end, I don't know what causes the bug, or how I can replicate it. I think I did find a likely suspect. > Good sleuthing

Re: RFR: 8244767 - Potential non-terminated string in getEncodingInternal() on Windows

2020-05-12 Thread Brent Christian
Thanks - change is pushed. -B On 5/11/20 5:26 PM, [email protected] wrote: +1 Naoto On 5/11/20 5:25 PM, Brian Burkhalter wrote: Hi Brent, It looks OK to me. Brian On May 11, 2020, at 4:36 PM, Brent Christian wrote: Please review this small fix in Windows native code:    Bug

RFR: 8244855 : Remove unused "getParent" function from Windows jni_util_md.c

2020-05-12 Thread Brent Christian
Hi, Please review this change to remove the unused "getParent()" function from jni_util_md.c on Windows. https://bugs.openjdk.java.net/browse/JDK-8244855 Automated build+test job is in progress. The diff is as follows: diff -r ee4bd700b772 src/java.base/windows/native/libjava/jni_util_md.c -

Re: RFR: 8244855 : Remove unused "getParent" function from Windows jni_util_md.c

2020-05-12 Thread Brent Christian
Technical Staff | +1.781.442.2037 Oracle Java Engineering 1 Network Drive Burlington, MA 01803 [email protected] Sent from my iPad On May 12, 2020, at 3:05 PM, Brent Christian wrote: Hi, Please review this change to remove the unused "getParent()" function from jni_util_md.c

Re: RFR: (CSR) JDK-8236688 Clarify String::stripIndent javadoc when string ends with line terminator

2020-05-13 Thread Brent Christian
Hi, Jim I have a few comments on the new wording (hopefully my understanding is correct): ! * If the block ends with a LF{@code "\n"} or CR{@code "\r"} character, ! * then this implies the block closes in column 0 of the next line, and thus ! * implies an indent of 0. I feel like th

Re: RFR: (CSR) JDK-8236688 Clarify String::stripIndent javadoc when string ends with line terminator

2020-05-14 Thread Brent Christian
ontains only a line terminator." ? or * "...ignore the last line if the last line is empty (contains only a line terminator)." or something along those lines. Thanks, -Brent On May 13, 2020, at 7:21 PM, Brent Christian wrote: Hi, Jim I have a few comments on the new wording

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

2020-06-01 Thread Brent Christian
One comment: src/java.base/share/classes/java/util/regex/Pattern.java --- 1679,1690 i += 2; int newTempLen; try { newTempLen = Math.addExact(j + 2, Math.multiplyExact(3, pLen - i)); } catch (ArithmeticException ae) { ! thro

Re: [PATCH] 8245694 : java.util.Properties.entrySet() does not override java.lang.Object methods

2020-06-02 Thread Brent Christian
Thank you for submitting the fix, Yu Li. (And thanks for the sponsor, Julia). This will be good to fix. I have a few changes to recommend. src/java.base/share/classes/java/util/Properties.java The code change looks fine to me. The ending Copyright year just needs to be changed from 2019 ->

Re: [PATCH] 8245694 : java.util.Properties.entrySet() does not override java.lang.Object methods

2020-06-08 Thread Brent Christian
Looks good to me as well. Thanks for making the updates to the test case. -Brent On 6/8/20 2:38 AM, Julia Boes wrote: Hi Yu Li, The copyright year of Properties.java needs to be updated to 2020. Otherwise looks good to me! Cheers, Julia

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

2020-06-23 Thread Brent Christian
Hi, Mandy For: @@ -152,7 +152,7 @@ * The system class loader is typically used to define classes on the * application class path, module path, and JDK-specific tools. * The platform class loader is a parent or an ancestor of the system class - * loader that all platform c

Re: request for review JDK-8211290

2020-06-30 Thread Brent Christian
Hi, Ivan The changes look fine to me. Please see that an automated test run that includes all the changed tests is performed. Thanks, -Brent On 6/30/20 5:38 AM, Ivan Sipka wrote: Hi all, kind reminder for RFR for JDK-8211974. thank you, - Original Message - From: ivan.si...@oracle

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

2020-07-21 Thread Brent Christian
Hi, Naoto I have a few comments: src/java.base/share/classes/java/lang/StringUTF16.java 379 private static int getSupplementaryCodePoint(byte[] ba, int cp, int index, int start, int end) I think it would be worth a small addition to the comment to reflect that non-surrogate chars are re

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

2020-07-22 Thread Brent Christian
Hi, Naoto The latest changes look good to me. -Brent On 7/22/20 10:23 AM, [email protected] wrote: Hi, I revised the fix again, based on further suggestions: https://cr.openjdk.java.net/~naoto/8248655.8248434/webrev.05/ Changes from v.04 are (all in StringUTF16.java): - The short cut n

Re: 8251272: Typo in java.util.Formatter: "Numberic" should be "Numeric"

2020-08-06 Thread Brent Christian
Looks good! -Brent On 8/6/20 3:54 PM, Brian Burkhalter wrote: For [1], please review this trivial fix [2]. Thanks, Brian [1] https://bugs.openjdk.java.net/browse/JDK-8251272 [2] diff --- a/src/java.base/share/classes/java/util/Formatter.java +++ b/src/java.base/share/classes/java/util/Format

Re: RFR: 8244706: GZIP "OS" header flag hard-coded to 0 instead of 255 (RFC 1952 non-compliance) [v4]

2020-09-15 Thread Brent Christian
On Tue, 15 Sep 2020 12:39:11 GMT, Jaikiran Pai wrote: >> Can I please get a review and a sponsor for this patch which fixes the issue >> reported in >> https://bugs.openjdk.java.net/browse/JDK-8244706? >> The commit here sets the `OS` header flag to `255` (which represents >> `unknown`) as note

Re: RFR: 8242882: opening jar file with large manifest might throw NegativeArraySizeException

2020-09-23 Thread Brent Christian
On Wed, 23 Sep 2020 15:12:58 GMT, Jaikiran Pai wrote: >> Can I please get a review and a sponsor for a fix for >> https://bugs.openjdk.java.net/browse/JDK-8242882? >> >> As noted in that JBS issue, if the size of the Manifest entry in the jar >> happens to be very large (such that it exceeds >

Re: RFR: 8242882: opening jar file with large manifest might throw NegativeArraySizeException

2020-09-24 Thread Brent Christian
On Wed, 23 Sep 2020 15:06:55 GMT, Jaikiran Pai wrote: > Can I please get a review and a sponsor for a fix for > https://bugs.openjdk.java.net/browse/JDK-8242882? > > As noted in that JBS issue, if the size of the Manifest entry in the jar > happens to be very large (such that it exceeds > the

RFR: 8255031 : Update java/util/prefs/AddNodeChangeListener.java to report more failure info

2020-10-20 Thread Brent Christian
Hi, The java/util/prefs/AddNodeChangeListener.java test fails once in a while in the automated test system. Previous failures were traced to machine configuration errors, but that does not appear to be the case this time. My efforts to reproduce this failure have been unsuccessful. The only u

Re: RFR: 8255031 : Update java/util/prefs/AddNodeChangeListener.java to report more failure info

2020-10-21 Thread Brent Christian
On Tue, 20 Oct 2020 23:25:31 GMT, Brian Burkhalter wrote: >> Hi, >> >> The java/util/prefs/AddNodeChangeListener.java test fails once in a while in >> the automated test system. Previous failures were traced to machine >> configuration errors, but that does not appear to be the case this time

Re: RFR: 8255031 : Update java/util/prefs/AddNodeChangeListener.java to report more failure info [v2]

2020-10-21 Thread Brent Christian
e we just > need to sleep for longer to account for the occasional slower tier1 test run). > * a few indentations fixes > > Thanks, > -Brent Brent Christian has updated the pull request incrementally with one additional commit since the last revision: print counter for sleeps

Re: RFR: 8255086: JRE country and region name may be the latest

2020-10-21 Thread Brent Christian
On Wed, 21 Oct 2020 20:39:18 GMT, Naoto Sato wrote: > Hi, > > Please review the changes to the subject issue. The fix replaces the > obsolete/incorrect English language/region/script display names in the COMPAT > root locale bundle. The data are derived from CLDR's English names. Hi, Naoto W

Re: RFR: 8255086: Update the root locale display names [v2]

2020-10-22 Thread Brent Christian
On Wed, 21 Oct 2020 23:38:23 GMT, Naoto Sato wrote: >> Hi, >> >> Please review the changes to the subject issue. The fix replaces the >> obsolete/incorrect English language/region/script display names in the >> COMPAT root locale bundle. The data are derived from CLDR's English names. > > Naot

Re: RFR: 8255086: Update the root locale display names

2020-10-22 Thread Brent Christian
On Wed, 21 Oct 2020 23:16:15 GMT, Naoto Sato wrote: >> Hi, Naoto >> >> What is the source for the updated values in LocaleNames.properties? >> >> Also, could the bug synopsis be updated to be more descriptive? >> >> Thanks, >> -Brent > > Hi Brent, > >> What is the source for the updated value

Integrated: 8255031 : Update java/util/prefs/AddNodeChangeListener.java to report more failure info

2020-10-22 Thread Brent Christian
On Tue, 20 Oct 2020 21:49:37 GMT, Brent Christian wrote: > Hi, > > The java/util/prefs/AddNodeChangeListener.java test fails once in a while in > the automated test system. Previous failures were traced to machine > configuration errors, but that does not appear to be the

Re: RFR: 8255242: Bidi.requiresBidi has misleading exception message

2020-10-23 Thread Brent Christian
On Fri, 23 Oct 2020 16:48:03 GMT, Naoto Sato wrote: > Hi, > > Please review this small exception message fix. > > Naoto Looks good. - Marked as reviewed by bchristi (Reviewer). PR: https://git.openjdk.java.net/jdk/pull/841

RFR: 8255690:   in StringBuilder.subSequence

2020-10-30 Thread Brent Christian
There are a couple of stray " "'s in the StringBuilder.subSequence() documentation, which should be removed. The updated doc build looks good. - Commit messages: - remove nbsp from AbstractStringBuilder.subSequence() Changes: https://git.openjdk.java.net/jdk/pull/963/files Webrev

RFR: 8214561: Use {@systemProperty} for definition of "java.util.prefs.PreferencesFactory" system property

2020-10-30 Thread Brent Christian
Using the {@systemProperty} tag for the "java.util.prefs.PreferencesFactory" system property will allow it to be found in the main javadoc search index. The updated doc build looks good. - Commit messages: - 8214561: Use {@systemProperty} for definition of java.util.prefs.Preferen

Re: RFR: 8255690:   in StringBuilder.subSequence

2020-10-30 Thread Brent Christian
On Fri, 30 Oct 2020 19:38:45 GMT, Lance Andersen wrote: >> There are a couple of stray " "'s in the StringBuilder.subSequence() >> documentation, which should be removed. The updated doc build looks good. > > Looks fine Brent Thanks, Lance - PR: https://git.openjdk.java.net/jdk/p

Integrated: 8255690:   in StringBuilder.subSequence

2020-10-30 Thread Brent Christian
On Fri, 30 Oct 2020 19:30:14 GMT, Brent Christian wrote: > There are a couple of stray " "'s in the StringBuilder.subSequence() > documentation, which should be removed. The updated doc build looks good. This pull request has now been integrated. Changeset: 98a6

Integrated: 8214561: Use {@systemProperty} for definition of "java.util.prefs.PreferencesFactory" system property

2020-10-30 Thread Brent Christian
On Fri, 30 Oct 2020 19:47:14 GMT, Brent Christian wrote: > Using the {@systemProperty} tag for the "java.util.prefs.PreferencesFactory" > system property will allow it to be found in the main javadoc search index. > > The updated doc build looks good. This pull request h

Re: RFR: 8254742: InputStream::readNBytes(int) result may contain zeros not in input

2020-11-03 Thread Brent Christian
On Tue, 3 Nov 2020 00:04:58 GMT, Brian Burkhalter wrote: > InputStream::readNBytes() invokes read(byte[],int,int) repeatedly to load > bytes into a sequence of intermediate arrays. If an intermediate array is not > completely filled before being added to the list of arrays the contents of > wh

Re: RFR: 8254742: InputStream::readNBytes(int) result may contain zeros not in input

2020-11-03 Thread Brent Christian
On Tue, 3 Nov 2020 08:56:38 GMT, Aleksey Shipilev wrote: >> InputStream::readNBytes() invokes read(byte[],int,int) repeatedly to load >> bytes into a sequence of intermediate arrays. If an intermediate array is >> not completely filled before being added to the list of arrays the contents >> o

Re: RFR: 8251317: Support for CLDR version 38

2020-11-18 Thread Brent Christian
On Tue, 17 Nov 2020 23:19:23 GMT, Naoto Sato wrote: > Hi, > > Please review the changes for upgrading the CLDR data to version 38. The vast > majority of the changes are simply the changes in CLDR upstream, and others > are mainly test changes due to the locale data change. Changes seem fine

Re: RFR: 8256480: Refactor ObjectInputStream field reader implementation

2020-11-18 Thread Brent Christian
Hi, Roger. The change looks good. I just noticed a couple small things: 2324 for (int i = 0; i < slots.length-1; i++) { 2325 new FieldValues(slots[i].desc, true); The slots[i].hasData check is no longer performed here. 2561 primValues = new byte[desc.ge

Re: RFR 8212807: tools/jar/multiRelease/Basic.java times out

2019-05-30 Thread Brent Christian
Hi, Lance This change is to collect more information in case this happens again, yes? Looks pretty good - just a couple comments: test/jdk/tools/jar/multiRelease/Basic.java 536 jar("ufm", jarfile, manifest.toString(), Is there a reason not to convert this to call jarTool() ? -- te

Re: RFR 8212807: tools/jar/multiRelease/Basic.java times out

2019-05-30 Thread Brent Christian
Thank you for elaborating. The new version looks good. -Brent On 5/30/19 1:29 PM, Lance Andersen wrote: Hi Brent, On May 30, 2019, at 4:02 PM, Brent Christian mailto:[email protected]>> wrote: Hi, Lance Thank you for the review. This change is to collect more informat

Re: RFR 8225198 : Optimize regex tree for greedy quantifiers of type {N, }

2019-06-04 Thread Brent Christian
Hi, Ivan The change looks fine. I would call this "noreg-cleanup". Tests are needed to confirm the correctness of the new code, which I imagine we already have. One small suggestion: src/java.base/share/classes/java/util/regex/Pattern.java 4271 * and unlimited maximum, for *, + and

Re: RFR: 8225179: (regex) Minor Pattern cleanup

2019-06-05 Thread Brent Christian
Hi, Claes I think the change looks fine. A couple suggestions: --- src/java.base/share/classes/java/util/regex/Pattern.java 3505 public boolean is(int ch) { Would it make sense to have @Override here? 4777 * The matchRef is used when a reference to this group is accessed later 4778

Re: RFR (XS) 8224849 : Flag (?U:...) is allowed for non-capturing groups

2019-06-25 Thread Brent Christian
That looks fine, Ivan. -Brent On 6/24/19 10:46 PM, Ivan Gerasimov wrote: Hello! Would someone volunteer to review this extra-small doc-only fix? Thanks in advance! With kind regards, Ivan On 5/28/19 9:33 AM, Ivan Gerasimov wrote: Hello! When the fix for JDK-7039066 (which added support

Re: RFR (XS) 8224716 : Javadoc of Int/Long/DoubleSummaryStatistics should mention possible overflow of count

2019-06-25 Thread Brent Christian
I was musing about this myself. If the changes are within the @implNote(s), then perhaps not? -Brent On 6/25/19 11:15 AM, Brian Burkhalter wrote: > Is a CSR in order? Thanks, Brian On Jun 25, 2019, at 5:49 AM, Ivan Gerasimov wrote: Hello! Would someone volunteer to review this extra-sm

Re: The final optimized version of Dual-Pivot Quicksort (ver.19.1)

2019-07-09 Thread Brent Christian
Hi, Is the webrev incomplete? It only contains the changes for DualPivotQuicksort.java, and not for Arrays.java, etc. Thanks, -Brent On 6/18/19 2:37 PM, Vladimir Yaroslavskiy wrote: Hi team, Please review the final optimized version of Dual-Pivot Quicksort (ver.19.1), see http://cr.openjdk

Re: The final optimized version of Dual-Pivot Quicksort (ver.19.1)

2019-07-31 Thread Brent Christian
Thanks, Laurent. I can sponsor this fix, get a RFR thread going for JDK-8226297, keep webrevs updated as the review progresses, etc. However I've uncovered an issue with the fix that should be resolved before proceeding. Specifically, the new Arrays.COMMON_PARALLELISM static constant causes

RFR: 8226297: Dual-pivot quicksort improvements

2019-08-05 Thread Brent Christian
Hi, Please review Vladimir Yaroslavskiy's changes to DualPivotQuickSort (seen earlier[1] on this alias). I will be sponsoring this change. I have a webrev against jdk-jdk here: http://cr.openjdk.java.net/~bchristi/8226297/webrev03-rfr/ (Note that I did a little re-ordering, and removed some

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-08-06 Thread Brent Christian
ed to compare your webrev against my latest (diff patch files) but it gives me too many changes lines. Do you have another idea to see incremental changes only ? (anyway I can compare raw files) Thanks, Laurent Le lun. 5 août 2019 à 23:43, Brent Christian <mailto:[email protected]>&g

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-08-06 Thread Brent Christian
that ordering, so that's what I've done. Thanks, -Brent Вторник, 6 августа 2019, 21:35 +03:00 от Brent Christian : Hi, Laurent I'm not sure what exactly is causing the problem, but here's my hunch: In Vladimir's version of Arrays.java:

Re: RFR: 8229283: StringLatin1 should consistently use CharacterDataLatin1.instance when applicable

2019-08-09 Thread Brent Christian
Hi Claes, Some observations: 394 int u1 = CharacterDataLatin1.instance.toUpperCase(c1); 395 int u2 = CharacterDataLatin1.instance.toUpperCase(c2); Changing u1 & u2 from char -> int, L399 now calls toLowerCase(int) instead of toLowerCase(char). Should be fine, though. Speaking of: 399 if

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-08-12 Thread Brent Christian
Hi, I received an update from Vladimir: --- "I investigated approach with adaptive threshold for mixed insertion sort and have the following results. New version shows the same gain for large arrays and has few percents of speed up for small arrays: total gain: s

RFR: 8212117 : Class.forName may return a reference to a loaded but not linked Class

2019-09-04 Thread Brent Christian
Hi, Please review my fix for JDK-8212117[1]. The webrev is here: http://cr.openjdk.java.net/~bchristi/8212117/webrev09/ There is also a CSR[2] in need of review. The spec for the 2-arg and 3-arg Class.forName() methods states they will "locate, load, and link" the class, however the linking

Re: RFR: 8212117 : Class.forName may return a reference to a loaded but not linked Class

2019-09-05 Thread Brent Christian
Hi, David On 9/5/19 12:52 AM, David Holmes wrote: Good to see this all come together :) :) So to clarify for others any current caller to find_class_from_class_loader that passes true for "init" was already implicitly asking for a linked class (as you must be linked before you can be init

Re: RFR: 8212117 : Class.forName may return a reference to a loaded but not linked Class

2019-09-05 Thread Brent Christian
ction matches what is in the JLS. Thanks, -Joe On 9/4/2019 2:12 PM, Brent Christian wrote: Hi, Please review my fix for JDK-8212117[1].  The webrev is here: http://cr.openjdk.java.net/~bchristi/8212117/webrev09/ There is also a CSR[2] in need of review. The spec for the 2-arg and

Re: RFR: 8212117 : Class.forName may return a reference to a loaded but not linked Class

2019-09-06 Thread Brent Christian
Hi, Mandy On 9/5/19 6:03 PM, Mandy Chung wrote: On 9/5/19 5:09 PM, Brent Christian wrote: jvm.h 349 * Link the 'arg' class (unless ClassForNameDeferLinking is set) I suggest to drop "(unless ...)" phrase because the flag is temporary. Sure, good idea. jni.cpp T

RFR 8230937 : Update bugid in ProblemList for vmTestbase/nsk/jdb/eval/eval001/eval001.java

2019-09-12 Thread Brent Christian
Hi, From the bug report: "The ProblemList indicates that vmTestbase/nsk/jdb/eval/eval001/eval001.java was added due to JDK-8212117. That bug has been fixed, but this test still fails. That line in the ProblemList should instead use 8221503." The change is: diff -r 85e1de070bef test/hotspot

RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-13 Thread Brent Christian
Hi, Please review these StackWalker and Throwable benchmarks for addition into the JDK microbenchmarks. Bug: https://bugs.openjdk.java.net/browse/JDK-8221623 Webrev: http://cr.openjdk.java.net/~bchristi/8221623/webrev07/ The StackWalker benchmarks use StackWalker's forEach(), walk(), and Opt

Re: RFR: 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base

2019-09-18 Thread Brent Christian
FWIW, I also noticed this for http://cr.openjdk.java.net/~jboes/webrevs/8231186/webrev.02/src/java.base/share/classes/java/lang/SecurityManager.java.sdiff.html -B On 9/18/19 11:32 AM, [email protected] wrote: Hi Julia, This is not a comment to changes you've made, but the webrev seems mi

Re: RFR: 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base

2019-09-18 Thread Brent Christian
erwise. Thanks, -Brent On 9/18/19 11:37 AM, Brent Christian wrote: FWIW, I also noticed this for http://cr.openjdk.java.net/~jboes/webrevs/8231186/webrev.02/src/java.base/share/classes/java/lang/SecurityManager.java.sdiff.html -B On 9/18/19 11:32 AM, [email protected] wrote: Hi Julia,

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-19 Thread Brent Christian
o setup more practical JMH runtimes by default. But I don't think this an issue particular the new benchmarks. Thanks, -Brent On 9/18/19 7:33 PM, Mandy Chung wrote: Hi Brent, $ make test TEST="micro:java.lang.StackWalkBench" It took very long that I killed the job.  Does t

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-19 Thread Brent Christian
logging benchmarks to their own file under: test/micro/org/openjdk/bench/java/util/logging/ ? Thanks, -Brent On 13/09/2019 23:07, Brent Christian wrote: Hi, Please review these StackWalker and Throwable benchmarks for addition into the JDK microbenchmarks. Bug: https://bu

Re: RFR: 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base

2019-09-20 Thread Brent Christian
Hi, Julia On 9/20/19 3:22 AM, Julia Boes wrote: Hi, Thanks for noticing the glitch in the sdiffs, Naoto and Brent. I see that there is indeed an issue with the webrev script and I'm looking into a workaround. The following classes are affected: src/java.base/share/classes/java/lang/Securit

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-20 Thread Brent Christian
age" tension WRT what @Benchmark methods get included/run. Worth giving thought to sometime... On 2019-09-19 20:09, Brent Christian wrote: Hi, Mandy Yes, that 'make' job would take ~7 hours on my machine. I believe this is typical for running micros using 'make'. 

Re: RFR: 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base

2019-09-23 Thread Brent Christian
Looks good. -B On 9/23/19 11:17 AM, Julia Boes wrote: Hi Brent, I was able to generate a webrev without any missing sdiffs (using gawk instead of awk with webrev.ksh) and made the requested changes below. src/java.base/share/classes/java/util/ResourceBundle.java I believe the tag spanni

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-23 Thread Brent Christian
On 9/23/19 2:15 AM, Daniel Fuchs wrote: >> ... since logging is no longer using Throwable to examine the call stack, maybe it makes more sense to move the logging benchmarks to their own file under: test/micro/org/openjdk/bench/java/util/logging/ > Well, I'll let you decide on that. That woul

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-24 Thread Brent Christian
On 9/23/19 4:48 PM, Mandy Chung wrote: I think doing the measurement for one of these would be adequate. StackWalkBench.forEach_AllOpts StackWalkBench.forEach_DefaultOpts StackWalkBench.forEach_HiddenAndReflectFrames OK, reduced to just DefaultOpts. There are a couple of commented benchmark

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-10-07 Thread Brent Christian
Hi, Vladimir I've read through the changes[1]. I have the following comments: --- src/java.base/share/classes/java/util/Arrays.java * Regarding the indentation changes in the equals() methods: - * {@code new Double(d1).equals(new Double(d2))} + * {@code new Double(d1).equals(new D

Re: Regression after jpackage+1-49 update

2019-10-08 Thread Brent Christian
On 10/7/19 1:12 AM, Alan Bateman wrote: On 7/10/2019 4:43 pm, Alan Bateman wrote: On 07/10/2019 04:35, David Holmes wrote: You can temporarily workaround with -XX:+ClassForNameDeferLinking, but your code needs to be updated to deal with LinkageErrors from Class.forName. >>> I suspect this

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-10-08 Thread Brent Christian
Hi, Vladimir On 10/8/19 3:18 PM, Vladimir Yaroslavskiy wrote: The following renaming changes are important and should be kept. My explanation is here > ... Thanks for the explanation - much appreciated. * Other changes, like failed -> fail, i++ -> ++i, and TypeConverter, FloatBuilder, Doubl

Re: Review Request JDK-8232617: Update the outdated code comments in java.lang.System class

2019-10-18 Thread Brent Christian
Looks fine. You might consider s/separated/separately/ . -Brent On 10/18/19 1:56 PM, Mandy Chung wrote: A trivial doc fix: diff --git a/src/java.base/share/classes/java/lang/System.java b/src/java.base/share/classes/java/lang/System.java --- a/src/java.base/share/classes/java/lang/System.j

Re: Review Request JDK-8232617: Update the outdated code comments in java.lang.System class

2019-10-21 Thread Brent Christian
PM, Brent Christian wrote: Looks fine.  You might consider s/separated/separately/ . -Brent On 10/18/19 1:56 PM, Mandy Chung wrote: A trivial doc fix: diff --git a/src/java.base/share/classes/java/lang/System.java b/src/java.base/share/classes/java/lang/System.java --- a/src/java.base/sh

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-10-23 Thread Brent Christian
the change if that sounds good. Other than those, this is pretty much ready to go. Thanks, -Brent 1. http://cr.openjdk.java.net/~bchristi/8226297/webrev09-incremental/ On 10/8/19 5:41 PM, Brent Christian wrote: Hi, Vladimir On 10/8/19 3:18 PM, Vladimir Yaroslavskiy wrote: The following

Re: Checking instanceof in DualPivotQuicksort

2019-10-24 Thread Brent Christian
Hi, Vladimir I'd prefer to keep the code as is. Perhaps the exception could help some other future maintainer to pinpoint a problem with a potential change. -Brent On 10/24/19 5:11 AM, Vladimir Yaroslavskiy wrote: Hi Brent, Looking at coverage of DualPivotQuicksort class, I found that case

Re: RFR: 8226297: Dual-pivot quicksort improvements

2019-10-24 Thread Brent Christian
nline Oct 24б 2019, 7:42 +03:00 от Brent Christian : Hi, I've created a webrev of the latest test changes that Vladimir sent me: http://cr.openjdk.java.net/~bchristi/8226297/webrev09-testUpdate/ (I also created an incremental webrev[1] along the way, in c

RFR 8233091 : Backout JDK-8212117: Class.forName loads a class but not linked if class is not initialized

2019-10-31 Thread Brent Christian
Hi, Please review my change to backout JDK-8212117: http://cr.openjdk.java.net/~bchristi/8233091/webrev-revert-01/ Background: A couple months ago, JDK-8212117[1] was fixed[2]. It changed the behavior of the 2-arg and 3-arg Class.forName methods to ensure that linking is performed. This con

Re: [14] RFR: 8232871: Host Locale Provider on Mac does not return translated values of Japanese calendar

2019-11-06 Thread Brent Christian
Hi, Naoto Looks pretty good. I have a few comments: -- src/java.base/macosx/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java 572 map = new HashMap<>(); FWIW, I believe the HashMap could be pre-sized using 'names.length'. -- src/java.base/macosx/native

Re: [14] RFR: 8232871: Host Locale Provider on Mac does not return translated values of Japanese calendar

2019-11-07 Thread Brent Christian
Looks good. -B On 11/6/19 6:11 PM, [email protected] wrote: Here is the updated webrev: https://cr.openjdk.java.net/~naoto/8232871/webrev.01/

Re: RFR: JDK-8233117 Escape Sequences For Line Continuation and White Space (Preview)

2019-11-07 Thread Brent Christian
Should the new escapes be added to the table in the String.translateEscapes() JavaDoc? -Brent On 11/7/19 6:22 AM, Jim Laskey wrote: Please review the following code changes. Provides for the introduction of two new escape sequences \ and \s. \ allows developers to express unwieldy string li

RFR 8233272 : The Class.forName specification should be updated to match the long-standing implementation with respect to class linking

2019-11-13 Thread Brent Christian
Hi, Recently, the 2-arg and 3-arg Class.forName() methods were updated[1] to perform class linking, per the specification. However this change had to be reverted[2]. Instead, let's clarify the Class.forName() spec not to guarantee linking (outside the case of also performing initialization,

Re: RFR 8233272 : The Class.forName specification should be updated to match the long-standing implementation with respect to class linking

2019-11-14 Thread Brent Christian
On 11/14/19 8:22 AM, Mandy Chung wrote: On 11/13/19 10:37 AM, Brent Christian wrote: The spec change looks fine. OK, thanks. As for the test, I expect that it simply calls Class.forName("Provider", false, ucl) and then should succeed. Then calling Class.forName("Provi

Re: RFR 8233272 : The Class.forName specification should be updated to match the long-standing implementation with respect to class linking

2019-11-14 Thread Brent Christian
On 11/14/19 4:12 PM, David Holmes wrote: On 15/11/2019 9:58 am, Brent Christian wrote: http://cr.openjdk.java.net/~bchristi/8233272/webrev-03/ Test is fine. Just one note/clarification:  63 // Loading (but not linking) Container will succeed. Container was already loaded as part

Re: RFR 8233272 : The Class.forName specification should be updated to match the long-standing implementation with respect to class linking

2019-11-15 Thread Brent Christian
On 11/14/19 4:46 PM, Mandy Chung wrote: On 11/14/19 4:42 PM, David Holmes wrote: If you really want to test both positive and negative cases from a clean slate then I would suggest modifying the test slightly and using two @run commands - one to try to initialize and one to not. Yes this is

Re: RFR: JDK-8233117 Escape Sequences For Line Continuation and White Space (Preview)

2019-11-15 Thread Brent Christian
Hi, Jim src/java.base/share/classes/java/lang/String.java These changes look fine. -- test/jdk/java/lang/String/TranslateEscapes.java I'm missing where the new verifyLineTerminator() method gets called. Perhaps that's meant to go here: 83 static void test4() { 84 85 } ? -B

Re: RFR 8233272 : The Class.forName specification should be updated to match the long-standing implementation with respect to class linking

2019-11-19 Thread Brent Christian
Thank you for the suggestions, Mandy and David. I've pushed the change. -Brent

Re: RFR: JDK-8233117 Escape Sequences For Line Continuation and White Space (Preview)

2019-11-19 Thread Brent Christian
On 11/18/19 6:26 AM, Jim Laskey wrote: http://cr.openjdk.java.net/~jlaskey/8233116/webrev.04/index.html OK, thanks. The changes in: src/java.base/share/classes/java/lang/String.java test/jdk/java/lang/String/TranslateEscapes.java look fine. -Brent

Re: Class-Path (in jar file) semantics different between Java 11 and 13 (on Windows)?

2019-11-19 Thread Brent Christian
On 11/18/19 7:36 AM, Alan Bateman wrote: > Yes, bad values are now ignored, bringing an end to an effort on the run-time over multiple releases to fix the problems this area. JDK-8224253[1] is the JDK 13 release note to announce this change and I see you've found the system property that you ca

Re: Class-Path (in jar file) semantics different between Java 11 and 13 (on Windows)?

2019-11-22 Thread Brent Christian
Hi, Jaikiran On 11/18/2019 7:56 AM, Jaikiran Pai wrote: The actual code which does this construction, resides here[2] . I see at [3] that '/' is prepended to the path. As Alan suggested [4], prepending with "file:/" ought to get it working. -Brent 2. https://github.com/quarkusio/quarkus/b

RFR 8235361 : JAR Class-Path no longer accepts relative URLs encoding absolute Windows paths (e.g "/C:/...")

2019-12-09 Thread Brent Christian
Hi, As discussed[1] last month on this alias, JAR Class-Path entries[2] that encode an absolute Windows path (including a drive letter, so e.g. "/C:/path/to/file.jar") are ignored as of 8211941. Such entries are legal relative URLs, and should not be ignored. Please review my fix to correct

Re: Class-Path (in jar file) semantics different between Java 11 and 13 (on Windows)?

2019-12-09 Thread Brent Christian
FYI, a fix for this (8235361[1]) is in review: https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-December/063934.html -Brent 1. https://bugs.openjdk.java.net/browse/JDK-8235361

Re: RFR: JDK-8236683 StringBuilder / StringBuffer capacity() doc is misleading (CSR)

2020-01-06 Thread Brent Christian
Looks reasonable to me - reviewed. -Brent On 1/6/20 10:29 AM, Jim Laskey wrote: Please review the following CSR intended to clarify the true meaning of StringBuilder::capacity and StringBuffer::capacity. csr: https://bugs.openjdk.java.net/browse/JDK-8236683 diff --git a/src/java.base/share/c

Re: [14] RFR (doc) 8237651 Clarify initialization of jdk.serialFilter

2020-01-24 Thread Brent Christian
Looks fine to me, Roger. -Brent On 1/24/20 11:51 AM, Roger Riggs wrote: Please review a doc change in the description of the initialization of the jdk.serialFilter from a system property to generalize it beyond only command line invocation. diff a/src/java.base/share/classes/java/io/ObjectInp

Re: [PATCH] Enhancement proposal for java.util.StringJoiner

2020-02-13 Thread Brent Christian
As a point of interest, some investigation of updating StringJoiner for CompactStrings was done a while back. See https://bugs.openjdk.java.net/browse/JDK-8148937 -Brent On 2/3/20 2:38 PM, Сергей Цыпанов wrote: Hello, as of JDK14 java.util.StringJoiner still uses char[] as a storage of glued

Re: Sponsor Request: 8241097: java/math/BigInteger/largeMemory/SymmetricRangeTests.java requires -XX:+CompactStrings

2020-03-17 Thread Brent Christian
Adding -XX:+CompactStrings seems reasonable to me. (And I think it's a betters solution than, say, increasing -Xmx to allow running without compact strings.) -Brent On 3/17/20 10:46 AM, Brian Burkhalter wrote: OK, I am fine with that. I’ll leave it open for the moment though in case anyone

Re: RFR: 8256480: Refactor ObjectInputStream field reader implementation [v2]

2020-11-20 Thread Brent Christian
On Thu, 19 Nov 2020 20:32:17 GMT, Roger Riggs wrote: >> ObjectInputStream has nearly identical but separate implementations to read >> values from the stream. >> Both implementations read primitive and object values from the stream and >> return an object holding the values. >> OIS.readFields()

Re: RFR: 8235784: java/lang/invoke/VarHandles/VarHandleTestByteArrayAsInt.java fails due to timeout with fastdebug bits

2020-12-03 Thread Brent Christian
On Thu, 3 Dec 2020 19:10:46 GMT, Mandy Chung wrote: > VarHandleTestByteArrayAsInt.java intermittently fails only fastdebug build > and slow mac os machines. I can't reproduce this locally. It fails on jdk > 16 internal testing on a few builds. I propose to increase the timeout and > see if

RFR: 8200102: NativeLibraryTest.java fails intermittently, unloaded count is not same as expected

2020-12-04 Thread Brent Christian
Please review this fix for the intermittently-failing java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java. The change replaces System.gc()+sleep() with the more robust gcAwait() mechanic used elsewhere in the test base, [as pointed out by Martin](https://bugs.openjdk.java.net/browse/JDK-

Re: RFR: 8200102: NativeLibraryTest.java fails intermittently, unloaded count is not same as expected

2020-12-04 Thread Brent Christian
On Fri, 4 Dec 2020 19:51:54 GMT, Mandy Chung wrote: >> Please review this fix for the intermittently-failing >> java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java. >> >> The change replaces System.gc()+sleep() with the more robust gcAwait() >> mechanic used elsewhere in the test base,

Re: RFR: 8200102: NativeLibraryTest.java fails intermittently, unloaded count is not same as expected [v2]

2020-12-07 Thread Brent Christian
> Martin](https://bugs.openjdk.java.net/browse/JDK-8200102?focusedCommentId=14382648&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14382648)(thanks!). > > The new version of the test passes 100 times out of 100 on the test farm. Brent Christian has updated the pull request w

Re: RFR: 8200102: NativeLibraryTest.java fails intermittently, unloaded count is not same as expected [v2]

2020-12-07 Thread Brent Christian
On Mon, 7 Dec 2020 20:38:31 GMT, Naoto Sato wrote: >> Brent Christian has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contain

  1   2   3   4   5   6   >