RFR: 8273098: Unnecessary Vector usage in java.naming

2021-08-28 Thread Andrey Turbanov
Usage of thread-safe collection Vector is unnecessary. It's recommended to use ArrayList/array if a thread-safe implementation is not needed. In post-BiasedLocking times, this is gets worse, as every access is synchronized. I checked only places where Vector was used as local variable. -

Re: RFR: 8273092: Sort classlist in JDK image

2021-08-28 Thread Claes Redestad
On Fri, 27 Aug 2021 23:12:52 GMT, Ioi Lam wrote: > When the classlist is generated using build.tools.classlist.HelloClasslist, > its contents may be non-deterministic due to Java thread execution order. > > We should sort the generated classlist to make the JDK image's contents more > determin

RFR: 8273100: Improve AbstractStringBuilder.append(String) when using CompactStrings

2021-08-28 Thread Claes Redestad
Refactor to improve inlining, which helps some microbenchmarks exer StringBuilder.append(String) - Commit messages: - 8273100: Improve AbstractStringBuilder.append(String) when using CompactStrings Changes: https://git.openjdk.java.net/jdk/pull/5291/files Webrev: https://webrevs.

Re: RFR: 8273100: Improve AbstractStringBuilder.append(String) when using CompactStrings

2021-08-28 Thread Claes Redestad
On Sat, 28 Aug 2021 13:21:24 GMT, Claes Redestad wrote: > Refactor to improve inlining, which helps some microbenchmarks exer > StringBuilder.append(String) Microbenchmark results: Baseline BenchmarkMode CntScore Error Units # +CompactStrings StringBuilders.appendL

Re: Proposal: JDK-8231640 - (prop) Canonical property storage

2021-08-28 Thread Alan Bateman
On 28/08/2021 05:45, Jaikiran Pai wrote: I hadn't considered the system property approach to switch to old behaviour in my proposals, so this is a very good input and I personally think the most logical proposals so far. Roger may be right that few would care but it would be changing behavior

Re: JPackage and ask for microphone permissions broken on OSX...

2021-08-28 Thread Ben S
Putting the information how to do this together. Trying to get an existing jpackaged app, that is not signed and is not distributed in the app store, to ask for mike permissions. Does not ever ask for permissions. Not sure how this differs from IntelliJ (which does successfully ask for permissions