Re: RFR: 8250625: Compiler implementation of Pattern Matching for instanceof (Final) [v4]

2020-10-23 Thread Vicente Romero
On Thu, 22 Oct 2020 12:14:42 GMT, Jan Lahoda wrote: >> This is the current proposed patch for the upcoming JEP 394, for pattern >> matching for instanceof. >> >> A summary of changes: >> -making the feature permanent (non-preview) >> -making the binding variables non-final (as per current

RFR: 8255206: [macos] LicenseTest fails on macOS 11

2020-10-23 Thread Alexander Matveev
I did not reproduce issue with license is not shown as per SQE report. It work as expected. However, jpackage fails due to unflatten/flatten being removed from hdiutil on macOS 11. I am not sure why it was needed, probably some legacy code. Without unflatten/flatten everything works as expected

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v2]

2020-10-23 Thread Jorn Vernee
On Fri, 23 Oct 2020 21:38:16 GMT, Jorn Vernee wrote: >> This approach does not work for reference types, since they are erased to >> `Object`, and then exact checking will be performed on the erased reference >> types. >> >> For example try this: >> >> import java.lang.invoke.MethodHandles;

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v3]

2020-10-23 Thread Jorn Vernee
> Hi, > > This patch adds an asExact() combinator to VarHandle, that will return a new > VarHandle that performs exact type checks, similar to > MethodHandle::invokeExact, to help developers catch inexact VarHandle usage, > which can lead to performance degradation. > > This is implemented

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v2]

2020-10-23 Thread Jorn Vernee
On Fri, 23 Oct 2020 20:41:31 GMT, Paul Sandoz wrote: >> Jorn Vernee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Make internalName helper method static > > This approach does not work for reference types, since they are erased to >

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v2]

2020-10-23 Thread Paul Sandoz
On Fri, 23 Oct 2020 18:06:51 GMT, Jorn Vernee wrote: >> Hi, >> >> This patch adds an asExact() combinator to VarHandle, that will return a new >> VarHandle that performs exact type checks, similar to >> MethodHandle::invokeExact, to help developers catch inexact VarHandle usage, >> which can

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Igor Ignatyev
On Fri, 23 Oct 2020 19:54:40 GMT, Igor Ignatyev wrote: >> Hi Igor, >> I think it depends on whether the tests will be permanently or temporarily >> excluded from running with containers. I thought this mechanism would be to >> permanently exclude the tests. That's why I used @requires. >>

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Bob Vandette
> On Oct 23, 2020, at 3:57 PM, Igor Ignatyev wrote: > > On Fri, 23 Oct 2020 19:25:27 GMT, Harold Seigel wrote: > >> I think it depends on whether the tests will be permanently or temporarily >> excluded from running with containers. I thought this mechanism would be to >> permanently

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Igor Ignatyev
On Fri, 23 Oct 2020 19:25:27 GMT, Harold Seigel wrote: > I think it depends on whether the tests will be permanently or temporarily > excluded from running with containers. I thought this mechanism would be to > permanently exclude the tests. That's why I used `@requires`. I see, if this is

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Harold Seigel
On Fri, 23 Oct 2020 19:17:40 GMT, Igor Ignatyev wrote: >> Please review this change to add an @requires mechanism called >> "jdk.containerized" to help mark tests that are incompatible with >> containers. Users would add "@requires jdk.containerized != true" to the >> incompatible tests and

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Harold Seigel
Hi Bob, Thanks for looking at this.  I'll look into basing the option on an environment variable. Thanks, Harold On 10/23/2020 3:12 PM, Bob Vandette wrote: I wonder if it makes sense to add this option to open/test/jtreg-ext/requires/VMProps.java and have it automatically enable this

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Igor Ignatyev
On Fri, 23 Oct 2020 18:44:54 GMT, Harold Seigel wrote: > Please review this change to add an @requires mechanism called > "jdk.containerized" to help mark tests that are incompatible with containers. > Users would add "@requires jdk.containerized != true" to the incompatible > tests and then

Re: RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Bob Vandette
I wonder if it makes sense to add this option to open/test/jtreg-ext/requires/VMProps.java and have it automatically enable this option based on an environment variable so we don’t have to remember the cryptic command line sequence. It’s too bad we can’t automatically detect that we are running

RFR: 8238263: Create at-requires mechanism for containers

2020-10-23 Thread Harold Seigel
Please review this change to add an @requires mechanism called "jdk.containerized" to help mark tests that are incompatible with containers. Users would add "@requires jdk.containerized != true" to the incompatible tests and then use "make test ... OPTIONS=-Djdk.containerized=true" or "bash

Re: RFR: JDK-8250768: javac should be adapted to changes in JEP 12 [v4]

2020-10-23 Thread Jonathan Gibbons
On Fri, 23 Oct 2020 16:21:53 GMT, Jan Lahoda wrote: >> This is an update to javac and javadoc, to introduce support for Preview >> APIs, and generally improve javac and javadoc behavior to more closely >> adhere to JEP 12. >> >> The notable changes are: >> >> * adding support for Preview

Integrated: 8232024: Don't pollute log output with multiple errors of the same type

2020-10-23 Thread Alexey Semenyuk
On Wed, 21 Oct 2020 17:03:33 GMT, Alexey Semenyuk wrote: > Don't run ldd and build list of dependency packages in case jpackage builds > DEB package on non Debian Linux and RPM on Debian Linux. In this cases > attempts to detect what packages provide libs will fail anyways, so don't > waste

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Daniel Fuchs
On Fri, 23 Oct 2020 09:14:48 GMT, Daniel Fuchs wrote: >> The changes in src/java.desktop looks fine. > > Changes to `java.logging` and `java.net.http` also look good to me. Hi Sergey, I'll give it some testing and sponsor it next week unless someone else steps up. best regards, -- daniel

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v2]

2020-10-23 Thread Jorn Vernee
On Fri, 23 Oct 2020 18:02:11 GMT, Rémi Forax wrote: >> Jorn Vernee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Make internalName helper method static > >

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v2]

2020-10-23 Thread Rémi Forax
On Fri, 23 Oct 2020 18:04:11 GMT, Jorn Vernee wrote: >> Hi, >> >> This patch adds an asExact() combinator to VarHandle, that will return a new >> VarHandle that performs exact type checks, similar to >> MethodHandle::invokeExact, to help developers catch inexact VarHandle usage, >> which can

Re: RFR: 8254354: Add an asExact() VarHandle combinator [v2]

2020-10-23 Thread Jorn Vernee
> Hi, > > This patch adds an asExact() combinator to VarHandle, that will return a new > VarHandle that performs exact type checks, similar to > MethodHandle::invokeExact, to help developers catch inexact VarHandle usage, > which can lead to performance degradation. > > This is implemented

RFR: 8254354: Add an asExact() VarHandle combinator

2020-10-23 Thread Jorn Vernee
Hi, This patch adds an asExact() combinator to VarHandle, that will return a new VarHandle that performs exact type checks, similar to MethodHandle::invokeExact, to help developers catch inexact VarHandle usage, which can lead to performance degradation. This is implemented using a boolean

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: 8255242: Bidi.requiresBidi has misleading exception message

2020-10-23 Thread Naoto Sato
Hi, Please review this small exception message fix. Naoto - Commit messages: - 8255242: Bidi.requiresBidi has misleading exception message Changes: https://git.openjdk.java.net/jdk/pull/841/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=841=00 Issue:

Re: RFR: JDK-8250768: javac should be adapted to changes in JEP 12 [v2]

2020-10-23 Thread Jonathan Gibbons
On Wed, 21 Oct 2020 12:43:51 GMT, Hannes Wallnöfer wrote: >> Jan Lahoda has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 35 commits: >> >> - Merge branch 'JDK-8250768-dev' of https://github.com/lahodaj/jdk into >> JDK-8250768 >>

Re: RFR: 8232024: Don't pollute log output with multiple errors of the same type

2020-10-23 Thread Andy Herrick
On Wed, 21 Oct 2020 17:03:33 GMT, Alexey Semenyuk wrote: > Don't run ldd and build list of dependency packages in case jpackage builds > DEB package on non Debian Linux and RPM on Debian Linux. In this cases > attempts to detect what packages provide libs will fail anyways, so don't > waste

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12" [v2]

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 15:31:46 GMT, Aleksey Shipilev wrote: >> It currently fails on x86_32 with `java.lang.IllegalStateException: >> Misaligned access at address: 12`. I checked that once JDK-8254162 >> integrates, that issue is gone. Until then, having clean x86_32 testing is >> beneficial

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12" [v2]

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 16:39:57 GMT, Maurizio Cimadamore wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix it instead of problem-listing > > Looks good > > /approve > > "Files Changed" on top -> "Review

Re: RFR: 8251989: Hex formatting and parsing utility [v8]

2020-10-23 Thread Roger Riggs
On Fri, 23 Oct 2020 16:21:29 GMT, Marcono1234 wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comment updates to class javadoc > > Do you want to refactor some of the classes where `HexFormat` would be a >

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"

2020-10-23 Thread Aleksey Shipilev
On Fri, 23 Oct 2020 15:39:41 GMT, Maurizio Cimadamore wrote: >>> Yes - another thing worth considering though is: if 32bit alignment is the >>> best we can ask a 32bit VM (e.g. a 32bit VM doesn't really 64-bit align a >>> double[] it seems, from what you are getting), then I think an even

Re: RFR: JDK-8250768: javac should be adapted to changes in JEP 12 [v2]

2020-10-23 Thread Jan Lahoda
On Wed, 21 Oct 2020 15:25:59 GMT, Hannes Wallnöfer wrote: >> Jan Lahoda has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 35 commits: >> >> - Merge branch 'JDK-8250768-dev' of https://github.com/lahodaj/jdk into >> JDK-8250768 >>

Re: RFR: 8251989: Hex formatting and parsing utility [v8]

2020-10-23 Thread Marcono1234
On Thu, 22 Oct 2020 15:55:30 GMT, Roger Riggs wrote: >> java.util.HexFormat utility: >> >> - Format and parse hexadecimal strings, with parameters for delimiter, >> prefix, suffix and upper/lowercase >> - Static factories and builder methods to create HexFormat copies with >> modified

Re: RFR: JDK-8250768: javac should be adapted to changes in JEP 12 [v4]

2020-10-23 Thread Jan Lahoda
> This is an update to javac and javadoc, to introduce support for Preview > APIs, and generally improve javac and javadoc behavior to more closely adhere > to JEP 12. > > The notable changes are: > > * adding support for Preview APIs (javac until now supported primarily only > preview

Re: RFR: JDK-8250768: javac should be adapted to changes in JEP 12 [v3]

2020-10-23 Thread Jan Lahoda
> This is an update to javac and javadoc, to introduce support for Preview > APIs, and generally improve javac and javadoc behavior to more closely adhere > to JEP 12. > > The notable changes are: > > * adding support for Preview APIs (javac until now supported primarily only > preview

Re: RFR: 8253939: [TESTBUG] Increase coverage of the cgroups detection code [v3]

2020-10-23 Thread Severin Gehwolf
> Test only change. With > [JDK-8253435](https://bugs.openjdk.java.net/browse/JDK-8253435) a test has > been added on the hotspot side, but nothing for the Java Metrics code. Same > for [JDK-8252359](https://bugs.openjdk.java.net/browse/JDK-8252359). > > When JDK-8217766 got fixed cgroup

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 15:37:03 GMT, Aleksey Shipilev wrote: >>> I can fix the whole thing thus, without problem listing the test then. >>> Agree? >> >> Yes - another thing worth considering though is: if 32bit alignment is the >> best we can ask a 32bit VM (e.g. a 32bit VM doesn't really 64-bit

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"

2020-10-23 Thread Aleksey Shipilev
On Fri, 23 Oct 2020 15:25:47 GMT, Maurizio Cimadamore wrote: > Yes - another thing worth considering though is: if 32bit alignment is the > best we can ask a 32bit VM (e.g. a 32bit VM doesn't really 64-bit align a > double[] it seems, from what you are getting), then I think an even better >

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12" [v2]

2020-10-23 Thread Aleksey Shipilev
> It currently fails on x86_32 with `java.lang.IllegalStateException: > Misaligned access at address: 12`. I checked that once JDK-8254162 > integrates, that issue is gone. Until then, having clean x86_32 testing is > beneficial for other work. > > Testing: > - [x] Affected test on Linux

Re: RFR: 8255343: java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 15:03:55 GMT, Aleksey Shipilev wrote: > I can fix the whole thing thus, without problem listing the test then. Agree? Yes - another thing worth considering though is: if 32bit alignment is the best we can ask a 32bit VM (e.g. a 32bit VM doesn't really 64-bit align a

Re: RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Aleksey Shipilev
On Fri, 23 Oct 2020 14:57:06 GMT, Maurizio Cimadamore wrote: >> Thing is, I don't think there is a way to problem list the _TestNG_ >> testcase, is it? There is only a way to problem list the entire jtreg test >> or its separate `@run` with ID. Which is what the patch does. I would think >>

Re: RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Aleksey Shipilev
On Fri, 23 Oct 2020 15:01:48 GMT, Aleksey Shipilev wrote: >> Can you see if this helps? >> >> diff --git >> a/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/SegmentTestDataProvider.java >> >>

Re: RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 14:45:22 GMT, Aleksey Shipilev wrote: >> Ok - I understand at least why JDK-8254162 fixed it - JDK-8254162 uses a new >> API to access memory (MemoryAccess) which disables alignment checks, so >> that's why the issue doesn't happen. But that means that there could be a >>

Re: RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Aleksey Shipilev
On Fri, 23 Oct 2020 14:33:11 GMT, Maurizio Cimadamore wrote: >> I'm not sure I get as to why the test fails on 32 bits - in the sense that >> it does not seem to rely on platform specific assumptions (at least on a >> quick look). On top of my head I'm not aware of what might have caused this

Re: RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 14:26:07 GMT, Maurizio Cimadamore wrote: >> It currently fails on x86_32 with `java.lang.IllegalStateException: >> Misaligned access at address: 12`. I checked that once JDK-8254162 >> integrates, that issue is gone. Until then, having clean x86_32 testing is >>

Re: RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 12:37:10 GMT, Aleksey Shipilev wrote: > It currently fails on x86_32 with `java.lang.IllegalStateException: > Misaligned access at address: 12`. I checked that once JDK-8254162 > integrates, that issue is gone. Until then, having clean x86_32 testing is > beneficial for

RFR: 8255343: Problemlist java/util/stream/SpliteratorTest.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Aleksey Shipilev
It currently fails on x86_32 with `java.lang.IllegalStateException: Misaligned access at address: 12`. I checked that once JDK-8254162 integrates, that issue is gone. Until then, having clean x86_32 testing is beneficial for other work. Testing: - [x] Affected test on Linux x86_64 (still

Re: RFR: 8254231: Implementation of Foreign Linker API (Incubator) [v12]

2020-10-23 Thread Maurizio Cimadamore
On Fri, 23 Oct 2020 11:02:11 GMT, Magnus Ihse Bursie wrote: >> Maurizio Cimadamore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix whitespaces > > Changes requested by ihse (Reviewer). @magicus the files you commented on are not

Re: RFR: 8253939: [TESTBUG] Increase coverage of the cgroups detection code for Java [v2]

2020-10-23 Thread Severin Gehwolf
> Test only change. With > [JDK-8253435](https://bugs.openjdk.java.net/browse/JDK-8253435) a test has > been added on the hotspot side, but nothing for the Java Metrics code. Same > for [JDK-8252359](https://bugs.openjdk.java.net/browse/JDK-8252359). This > patch alleviates that. > >

RFR: 8255331: Problemlist java/foreign/TestMismatch.java on 32-bit platforms until JDK-8254162

2020-10-23 Thread Aleksey Shipilev
I would like to have clean x86_32 test runs until JDK-8254162 arrives. Testing: - [x] Affected test on Linux x86_64 (still passes) - [x] Affected test on Linux x86_32 (now ignored) - Commit messages: - 8255331: Problemlist java/foreign/TestMismatch.java on 32-bit platforms

Re: RFR: JDK-8252870: Finalize (remove "incubator" from) jpackage [v4]

2020-10-23 Thread Magnus Ihse Bursie
On Wed, 21 Oct 2020 20:05:31 GMT, Andy Herrick wrote: >> JDK-8252870: Finalize (remove "incubator" from) jpackage > > Andy Herrick has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains five commits: > > - Merge branch master into

Re: RFR: 8254231: Implementation of Foreign Linker API (Incubator) [v12]

2020-10-23 Thread Magnus Ihse Bursie
On Thu, 22 Oct 2020 17:04:34 GMT, Maurizio Cimadamore wrote: >> This patch contains the changes associated with the first incubation round >> of the foreign linker access API incubation >> (see JEP 389 [1]). This work is meant to sit on top of the foreign memory >> access support (see JEP 393

Re: RFR: 8159746: (proxy) Support for default methods

2020-10-23 Thread Peter Levart
On Thu, 22 Oct 2020 17:07:55 GMT, Mandy Chung wrote: >> Thanks for the update. Lots of challenges finding the right API as there are >> security and usability issues, not to mention performance and making it look >> like the support for default methods has always been there. >> >> I've

Integrated: 8254982: (tz) Upgrade time-zone data to tzdata2020c

2020-10-23 Thread Kiran Sidhartha Ravikumar
On Mon, 19 Oct 2020 18:44:28 GMT, Kiran Sidhartha Ravikumar wrote: > Hi Guys, > > Please review the integration of tzdata2020c to JDK. > > Details regarding the change can be viewed at - > https://mm.icann.org/pipermail/tz-announce/2020-October/60.html > Bug:

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Сергей Цыпанов
On Fri, 23 Oct 2020 09:12:15 GMT, Daniel Fuchs wrote: >> As discussed in https://github.com/openjdk/jdk/pull/510 there is never a >> reason to explicitly instantiate any instance of `Atomic*` class with its >> default value, i.e. `new AtomicInteger(0)` could be replaced with `new >>

Re: RFR: 8251989: Hex formatting and parsing utility [v8]

2020-10-23 Thread Daniel Fuchs
On Thu, 22 Oct 2020 15:55:30 GMT, Roger Riggs wrote: >> java.util.HexFormat utility: >> >> - Format and parse hexadecimal strings, with parameters for delimiter, >> prefix, suffix and upper/lowercase >> - Static factories and builder methods to create HexFormat copies with >> modified

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Daniel Fuchs
On Fri, 23 Oct 2020 08:15:00 GMT, Sergey Bylokhov wrote: >> As discussed in https://github.com/openjdk/jdk/pull/510 there is never a >> reason to explicitly instantiate any instance of `Atomic*` class with its >> default value, i.e. `new AtomicInteger(0)` could be replaced with `new >>

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Daniel Fuchs
On Thu, 22 Oct 2020 20:46:15 GMT, Сергей Цыпанов wrote: > As discussed in https://github.com/openjdk/jdk/pull/510 there is never a > reason to explicitly instantiate any instance of `Atomic*` class with its > default value, i.e. `new AtomicInteger(0)` could be replaced with `new >

Re: RFR: 8229845: Decrease memory consumption of BigInteger.toString()

2020-10-23 Thread Claes Redestad
On Thu, 22 Oct 2020 20:56:44 GMT, Brian Burkhalter wrote: > Please review this proposed fix. The review was initially in this thread > > http://mail.openjdk.java.net/pipermail/core-libs-dev/2019-August/061914.html > > under the old Hg SCM. The changes proposed here are derived from the final

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Sergey Bylokhov
On Thu, 22 Oct 2020 20:46:15 GMT, Сергей Цыпанов wrote: > As discussed in https://github.com/openjdk/jdk/pull/510 there is never a > reason to explicitly instantiate any instance of `Atomic*` class with its > default value, i.e. `new AtomicInteger(0)` could be replaced with `new >

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Claes Redestad
On Thu, 22 Oct 2020 20:46:15 GMT, Сергей Цыпанов wrote: > As discussed in https://github.com/openjdk/jdk/pull/510 there is never a > reason to explicitly instantiate any instance of `Atomic*` class with its > default value, i.e. `new AtomicInteger(0)` could be replaced with `new >

RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Сергей Цыпанов
As discussed in https://github.com/openjdk/jdk/pull/510 there is never a reason to explicitly instantiate any instance of `Atomic*` class with its default value, i.e. `new AtomicInteger(0)` could be replaced with `new AtomicInteger()` which is faster: @State(Scope.Thread)

Re: RFR: 8255299: Drop explicit zeroing at instantiation of Atomic* objects

2020-10-23 Thread Claes Redestad
On Thu, 22 Oct 2020 20:46:15 GMT, Сергей Цыпанов wrote: > As discussed in https://github.com/openjdk/jdk/pull/510 there is never a > reason to explicitly instantiate any instance of `Atomic*` class with its > default value, i.e. `new AtomicInteger(0)` could be replaced with `new >

Re: "loc: wrong sig" in ZipFileSystem on a valid ZIP file (extra data field of exactly 5 bytes)

2020-10-23 Thread Dawid Weiss
This looks like a legitimate bug to me (the zip file system implementation is sensitive to the order of extra parameters and may throw an unexpected error on zip64 archives exceeding 4 gigabytes). I can't file a Jira issue - no permissions - but I think it'd be worth adding one? Dawid On Wed,