Re: RFR: 8273235: tools/launcher/HelpFlagsTest.java Fails on Windows 32bit

2021-11-05 Thread Aleksey Shipilev
On Thu, 4 Nov 2021 13:10:37 GMT, Christian Stein wrote: > This PR implements the fix as suggested by Adam Farley, which reads: > >> Note: Looks to be as simple as adding `jaccessinspector-32` and >> `jaccesswalker-32` to `TOOLS_NOT_TO_TEST` at the top of >> `HelpFlagsTest.java`, as the non-32b

Re: RFR: JDK-8276572: Fake libsyslookup.so library causes tooling issues

2021-11-05 Thread Aleksey Shipilev
On Thu, 4 Nov 2021 04:19:02 GMT, Andrew John Hughes wrote: > The lack of anything to compile in `syslookup.c` is leading to a number of > issues in our tooling, on some architectures more than others (s390x seems to > be the most problematic). They expect to be able to retrieve debuginfo and

Re: RFR: 8273235: tools/launcher/HelpFlagsTest.java Fails on Windows 32bit

2021-11-04 Thread Aleksey Shipilev
On Thu, 4 Nov 2021 13:10:37 GMT, Christian Stein wrote: > This PR implements the fix as suggested by Adam Farley, which reads: > >> Note: Looks to be as simple as adding `jaccessinspector-32` and >> `jaccesswalker-32` to `TOOLS_NOT_TO_TEST` at the top of >> `HelpFlagsTest.java`, as the non-32b

Re: RFR: JDK-8276572: Fake libsyslookup.so library causes tooling issues

2021-11-04 Thread Aleksey Shipilev
On Thu, 4 Nov 2021 04:19:02 GMT, Andrew John Hughes wrote: > The lack of anything to compile in `syslookup.c` is leading to a number of > issues in our tooling, on some architectures more than others (s390x seems to > be the most problematic). They expect to be able to retrieve debuginfo and

Integrated: 8276217: Harmonize StrictMath intrinsics handling

2021-11-04 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 11:23:16 GMT, Aleksey Shipilev wrote: > This blocks JDK-8276215: `StrictMath` intrinsics are handled peculiarly by > giving failing intrinsics a second chance to match against the similar `Math` > intrinsics. This has interesting consequence for matchers: we can

Integrated: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence

2021-11-04 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 08:47:31 GMT, Aleksey Shipilev wrote: > `Unsafe.{load|store}Fence` falls back to `unsafe.cpp` for > `OrderAccess::{acquire|release}Fence()`. It seems too heavy-handed (useless?) > to call to runtime for a single memory barrier. We can simplify the native

Re: RFR: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence [v2]

2021-11-04 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 07:36:53 GMT, Aleksey Shipilev wrote: >> `Unsafe.{load|store}Fence` falls back to `unsafe.cpp` for >> `OrderAccess::{acquire|release}Fence()`. It seems too heavy-handed >> (useless?) to call to runtime for a single memory barrier. We can simplify >

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v3]

2021-11-03 Thread Aleksey Shipilev
On Tue, 2 Nov 2021 06:25:33 GMT, Aleksey Shipilev wrote: >> This blocks JDK-8276215: `StrictMath` intrinsics are handled peculiarly by >> giving failing intrinsics a second chance to match against the similar >> `Math` intrinsics. This has interesting consequence for matchers

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v3]

2021-11-03 Thread Aleksey Shipilev
On Tue, 2 Nov 2021 06:25:33 GMT, Aleksey Shipilev wrote: >> This blocks JDK-8276215: `StrictMath` intrinsics are handled peculiarly by >> giving failing intrinsics a second chance to match against the similar >> `Math` intrinsics. This has interesting consequence for matchers

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence [v2]

2021-11-02 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 08:58:48 GMT, Aleksey Shipilev wrote: >> `Unsafe.storeStoreFence` currently delegates to stronger >> `Unsafe.storeFence`. We can teach compilers to map this directly to already >> existing rules that handle `MemBarStoreStore`. Like explicit >> `Loa

Integrated: 8252990: Intrinsify Unsafe.storeStoreFence

2021-11-02 Thread Aleksey Shipilev
On Wed, 27 Oct 2021 11:53:47 GMT, Aleksey Shipilev wrote: > `Unsafe.storeStoreFence` currently delegates to stronger `Unsafe.storeFence`. > We can teach compilers to map this directly to already existing rules that > handle `MemBarStoreStore`. Like explicit `LoadFence`/`StoreF

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v2]

2021-11-01 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 22:59:10 GMT, Vladimir Kozlov wrote: > Yes, I am fine with new intrinsics for them. All right, see new commit then. - PR: https://git.openjdk.java.net/jdk/pull/6184

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v3]

2021-11-01 Thread Aleksey Shipilev
24 ops/ms > StrictMathBench.maxFloat thrpt4 230918.334 ± 63.160 ops/ms > StrictMathBench.maxInt thrpt4 231059.128 ± 51.224 ops/ms > StrictMathBench.maxLongthrpt4 194488.210 ± 495.224 ops/ms > > StrictMathBench.sqrtDouble thrpt4 231023.703 ± 247.33

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v2]

2021-11-01 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 18:44:53 GMT, Vladimir Kozlov wrote: > Removing intrinsics for StrictMatch `min/max` methods may prevent them from > inlining if they are not hot when caller is compiled. Would you like me to leave them instead? That would mean we introduce these new intrinsic definitions:

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence [v2]

2021-11-01 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 08:58:48 GMT, Aleksey Shipilev wrote: >> `Unsafe.storeStoreFence` currently delegates to stronger >> `Unsafe.storeFence`. We can teach compilers to map this directly to already >> existing rules that handle `MemBarStoreStore`. Like explicit >> `Loa

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v2]

2021-11-01 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 13:08:05 GMT, Andrew Haley wrote: > So we have _dsqrt and_dsqrt_strict, which must be functionally identical, but > we provide both names because they're part of a public API. I think this > deserves an explanatory comment in the code. Yes, no problem, added comment near int

Re: RFR: 8276217: Harmonize StrictMath intrinsics handling [v2]

2021-11-01 Thread Aleksey Shipilev
24 ops/ms > StrictMathBench.maxFloat thrpt4 230918.334 ± 63.160 ops/ms > StrictMathBench.maxInt thrpt4 231059.128 ± 51.224 ops/ms > StrictMathBench.maxLongthrpt4 194488.210 ± 495.224 ops/ms > > StrictMathBench.sqrtDouble thrpt4 231023.703 ± 247.33

Re: RFR: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence [v2]

2021-11-01 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 07:32:18 GMT, Aleksey Shipilev wrote: >> src/hotspot/share/classfile/vmIntrinsics.hpp line 526: >> >>> 524:do_name( storeFence_name, >>> "storeFence")

RFR: 8276217: Harmonize StrictMath intrinsics handling

2021-11-01 Thread Aleksey Shipilev
This blocks JDK-8276215: `StrictMath` intrinsics are handled peculiarly by giving failing intrinsics a second chance to match against the similar `Math` intrinsics. This has interesting consequence for matchers: we can match the native `StrictMath.sqrt` to non-native intrinsic for `Math.sqrt`. I

Re: RFR: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence

2021-11-01 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 02:15:04 GMT, David Holmes wrote: > I'm not quite seeing the motivation here. Your claim is that the > non-intrinsic implementations involve a native call and so that is too > expensive; yet the new code still relies on the fullFence being intrinsified > else it is still a n

Re: RFR: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence [v2]

2021-11-01 Thread Aleksey Shipilev
On Mon, 1 Nov 2021 02:09:19 GMT, David Holmes wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Restore RN for fullFence > > src/hotspot/share/classfile/vmIntrinsics.hpp l

Re: RFR: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence [v2]

2021-11-01 Thread Aleksey Shipilev
avgt3 0.406 ± 0.003 ns/op > Single.release avgt3 15.838 ± 0.019 ns/op <--- upgraded, calls > runtime > Single.storeStore avgt3 15.844 ± 0.104 ns/op <--- upgraded, calls > runtime > > > Additional testing: > - [x] Linux x86_64 fastde

Re: RFR: 8276102: JDK-8245095 integration reverted JDK-8247980

2021-10-29 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 11:13:57 GMT, Aleksey Shipilev wrote: > See the [integration > commit](https://github.com/openjdk/jdk/commit/9d191fce55fa70d6a2affc724fad57b0e20e4bde#diff-5b9b15832385ab8e02ffca3ddef6d65a9dea73f45abbe5e4f0be561be02073ffR30 > ) for JDK-8245095. It reintroduced `

Integrated: 8276102: JDK-8245095 integration reverted JDK-8247980

2021-10-29 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 11:13:57 GMT, Aleksey Shipilev wrote: > See the [integration > commit](https://github.com/openjdk/jdk/commit/9d191fce55fa70d6a2affc724fad57b0e20e4bde#diff-5b9b15832385ab8e02ffca3ddef6d65a9dea73f45abbe5e4f0be561be02073ffR30 > ) for JDK-8245095. It reintroduced `

RFR: 8276102: JDK-8245095 integration reverted JDK-8247980

2021-10-28 Thread Aleksey Shipilev
See the [integration commit](https://github.com/openjdk/jdk/commit/9d191fce55fa70d6a2affc724fad57b0e20e4bde#diff-5b9b15832385ab8e02ffca3ddef6d65a9dea73f45abbe5e4f0be561be02073ffR30 ) for JDK-8245095. It reintroduced `java/util/stream` in `exclusiveAccess.dirs`, which effectively reverts JDK-82479

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence [v2]

2021-10-28 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 07:41:59 GMT, Aleksey Shipilev wrote: >> Thanks for clarifying. Now we have all the intrinsics in place we have the >> choice of delegating either at the Java level or the native level, where >> previously we had to delegate at the Java level to get

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence [v2]

2021-10-28 Thread Aleksey Shipilev
avgt3 0.407 ± 0.039 ns/op > Single.releaseFence avgt 3 0.406 ± 0.001 ns/op > Single.storeStoreFence avgt3 0.406 ± 0.001 ns/op > > > Additional testing: > - [x] Linux x86_64 fastdebug `tier1` Aleksey Shipilev has updated the

RFR: 8276096: Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence

2021-10-28 Thread Aleksey Shipilev
`Unsafe.{load|store}Fence` falls back to `unsafe.cpp` for `OrderAccess::{acquire|release}Fence()`. It seems too heavy-handed (useless?) to call to runtime for a single memory barrier. We can simplify the native `Unsafe` interface by falling back to `fullFence` when `{load|store}Fence` intrinsic

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence

2021-10-28 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 07:23:52 GMT, David Holmes wrote: >> Something should happen when intrinsic is disabled. Other fences have native >> `Unsafe_{Load|Store|Full}Fence` entry points for this. We can, technically, >> do the same here, but I see no need. Instead, we can fall back to the >> alrea

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence

2021-10-28 Thread Aleksey Shipilev
On Thu, 28 Oct 2021 02:32:41 GMT, David Holmes wrote: >> `Unsafe.storeStoreFence` currently delegates to stronger >> `Unsafe.storeFence`. We can teach compilers to map this directly to already >> existing rules that handle `MemBarStoreStore`. Like explicit >> `LoadFence`/`StoreFence`, we intro

RFR: 8252990: Intrinsify Unsafe.storeStoreFence

2021-10-27 Thread Aleksey Shipilev
`Unsafe.storeStoreFence` currently delegates to stronger `Unsafe.storeFence`. We can teach compilers to map this directly to already existing rules that handle `MemBarStoreStore`. Like explicit `LoadFence`/`StoreFence`, we introduce the special node to differentiate explicit fence and implicit s

Integrated: 8177814: jdk/editpad is not in jdk TEST.groups

2021-10-12 Thread Aleksey Shipilev
On Thu, 23 Sep 2021 08:54:48 GMT, Aleksey Shipilev wrote: > @prrace notices this here: > https://github.com/openjdk/jdk/pull/5544#issuecomment-925396869. And I think > it is the already open issue that this patch is fixing. While the original > patch added the test in `jdk_

Re: RFR: 8177814: jdk/editpad is not in jdk TEST.groups

2021-10-12 Thread Aleksey Shipilev
On Thu, 23 Sep 2021 08:54:48 GMT, Aleksey Shipilev wrote: > @prrace notices this here: > https://github.com/openjdk/jdk/pull/5544#issuecomment-925396869. And I think > it is the already open issue that this patch is fixing. While the original > patch added the test in `jdk_

Re: RFR: 8177814: jdk/editpad is not in jdk TEST.groups

2021-10-11 Thread Aleksey Shipilev
On Thu, 23 Sep 2021 08:54:48 GMT, Aleksey Shipilev wrote: > @prrace notices this here: > https://github.com/openjdk/jdk/pull/5544#issuecomment-925396869. And I think > it is the already open issue that this patch is fixing. While the original > patch added the test in `jdk_

Re: StringCoding.hasNegatives

2021-10-01 Thread Aleksey Shipilev
On 10/1/21 4:46 PM, Brett Okken wrote: The current pure Java implementation does two things: it provides a fallback for pure-interpreter JVMs and it provides the reader with a simple implementation. I'm not at all sure we'd want a complex implementation. I thought this might be the case. Hav

Re: RFR: 8274606: Fix jaxp/javax/xml/jaxp/unittest/transform/SurrogateTest.java test

2021-10-01 Thread Aleksey Shipilev
On Thu, 30 Sep 2021 18:32:17 GMT, Alex Kasko wrote: > I was working on backporting JDK-8268457 and found minor problems with the > test introduced there: > > 1. `compareWith*` helper methods are used without `Assert.assertTrue()` > wrapping, so they are effectively ignored > > 2. `this.getCla

Re: RFR: 8274349: ForkJoinPool.commonPool() does not work with 1 CPU [v2]

2021-09-30 Thread Aleksey Shipilev
On Fri, 1 Oct 2021 05:10:17 GMT, David Holmes wrote: >> A regression introduced in Java 17 will give the default FJ pool a >> parallelism of zero in a uniprocessor environment. The fix restores this to >> a value of 1. See bug report for details. >> >> Testing: >> - new regression test >> -

Integrated: 8274523: java/lang/management/MemoryMXBean/MemoryTest.java test should handle Shenandoah

2021-09-29 Thread Aleksey Shipilev
On Wed, 29 Sep 2021 17:56:00 GMT, Aleksey Shipilev wrote: > Currently it fails with: > > > $ CONF=linux-x86_64-server-fastdebug make run-test > TEST=java/lang/management/MemoryMXBean/MemoryTest.java > > STDERR: > java.lang.RuntimeException: TEST FAILED: Numb

Re: RFR: 8274523: java/lang/management/MemoryMXBean/MemoryTest.java test should handle Shenandoah

2021-09-29 Thread Aleksey Shipilev
On Wed, 29 Sep 2021 17:56:00 GMT, Aleksey Shipilev wrote: > Currently it fails with: > > > $ CONF=linux-x86_64-server-fastdebug make run-test > TEST=java/lang/management/MemoryMXBean/MemoryTest.java > > STDERR: > java.lang.RuntimeException: TEST FAILED: Numb

RFR: 8274523: java/lang/management/MemoryMXBean/MemoryTest.java test should handle Shenandoah

2021-09-29 Thread Aleksey Shipilev
Currently it fails with: $ CONF=linux-x86_64-server-fastdebug make run-test TEST=java/lang/management/MemoryMXBean/MemoryTest.java STDERR: java.lang.RuntimeException: TEST FAILED: Number of heap pools = 1 but expected <= 3 and >= 3 Z already handles it with a special configuration, Shenandoa

RFR: 8274522: java/lang/management/ManagementFactory/MXBeanException.java test fails with Shenandoah

2021-09-29 Thread Aleksey Shipilev
Fails like this: $ CONF=linux-x86_64-server-fastdebug make run-test TEST=java/lang/management/ManagementFactory/MXBeanException.java TEST_VM_OPTS="-XX:+UseShenandoahGC" ... java.lang.NullPointerException: Cannot invoke "java.lang.management.MemoryPoolMXBean.setUsageThreshold(long)" because

RFR: 8177814: jdk/editpad is not in jdk TEST.groups

2021-09-23 Thread Aleksey Shipilev
@prrace notices this here: https://github.com/openjdk/jdk/pull/5544#issuecomment-925396869. And I think it is the already open issue that this patch is fixing. While the original patch added the test in `jdk_other`, Phil suggests it to be added to `jdk_desktop`. Additional testing: - [x] `jdk_

Re: RFR: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-23 Thread Aleksey Shipilev
On Wed, 22 Sep 2021 23:19:50 GMT, Phil Race wrote: > You'd need to add it to the desktop test group. Right. See #5648. - PR: https://git.openjdk.java.net/jdk/pull/5544

Integrated: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-21 Thread Aleksey Shipilev
On Thu, 16 Sep 2021 09:13:15 GMT, Aleksey Shipilev wrote: > This is a GUI test, and it should be `@headful`. > > Additional testing: > - [x] Test still runs in default, and does not run with `!headful` This pull request has now been integrated. Changeset: 7acec3f1 Author:Alek

Re: RFR: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-21 Thread Aleksey Shipilev
On Thu, 16 Sep 2021 09:13:15 GMT, Aleksey Shipilev wrote: > This is a GUI test, and it should be `@headful`. > > Additional testing: > - [x] Test still runs in default, and does not run with `!headful` Thank you! - PR: https://git.openjdk.java.net/jdk/pull/5544

Re: RFR: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-21 Thread Aleksey Shipilev
On Thu, 16 Sep 2021 09:13:15 GMT, Aleksey Shipilev wrote: > This is a GUI test, and it should be `@headful`. > > Additional testing: > - [x] Test still runs in default, and does not run with `!headful` Any takers? ;) - PR: https://git.openjdk.java.net/jdk/pull/5544

Integrated: 8273797: Stop impersonating "server" VM in all VM variants

2021-09-20 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:02:19 GMT, Aleksey Shipilev wrote: > As the follow-up for Zero-specific JDK-8273494, we might want to clean up > build system logic for all VM variants: stop impersonating "server" VMs for > all of them. This basically leaves "core" and &q

Re: RFR: 8273797: Stop impersonating "server" VM in all VM variants

2021-09-20 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:02:19 GMT, Aleksey Shipilev wrote: > As the follow-up for Zero-specific JDK-8273494, we might want to clean up > build system logic for all VM variants: stop impersonating "server" VMs for > all of them. This basically leaves "core" and &q

Integrated: 8247980: Exclusive execution of java/util/stream tests slows down tier1

2021-09-20 Thread Aleksey Shipilev
On Thu, 19 Aug 2021 15:15:31 GMT, Aleksey Shipilev wrote: > See the bug report for more details. I would appreciate if people with their > corporate testing systems would run this through their systems to avoid > surprises. (ping @RealCLanger, @iignatev). This pull request has

Integrated: 8273314: Add tier4 test groups

2021-09-20 Thread Aleksey Shipilev
On Fri, 3 Sep 2021 09:10:20 GMT, Aleksey Shipilev wrote: > During the review of JDK-8272914 that added hotspot:tier{2,3} groups, > @iignatev suggested to create tier4 groups that capture all tests not in > tiers{1,2,3}. > > Caveats: > - I excluded `applications` f

Re: RFR: 8247980: Exclusive execution of java/util/stream tests slows down tier1

2021-09-20 Thread Aleksey Shipilev
On Thu, 19 Aug 2021 15:15:31 GMT, Aleksey Shipilev wrote: > See the bug report for more details. I would appreciate if people with their > corporate testing systems would run this through their systems to avoid > surprises. (ping @RealCLanger, @iignatev). Ok, let's try! ---

Re: RFR: 8273314: Add tier4 test groups [v4]

2021-09-20 Thread Aleksey Shipilev
On Fri, 17 Sep 2021 06:59:09 GMT, Aleksey Shipilev wrote: >> During the review of JDK-8272914 that added hotspot:tier{2,3} groups, >> @iignatev suggested to create tier4 groups that capture all tests not in >> tiers{1,2,3}. >> >> Caveats: >> - I exclude

Re: RFR: 8273314: Add tier4 test groups [v3]

2021-09-17 Thread Aleksey Shipilev
On Mon, 6 Sep 2021 13:22:03 GMT, Aleksey Shipilev wrote: >> During the review of JDK-8272914 that added hotspot:tier{2,3} groups, >> @iignatev suggested to create tier4 groups that capture all tests not in >> tiers{1,2,3}. >> >> Caveats: >> - I exclude

Re: RFR: 8273314: Add tier4 test groups [v4]

2021-09-17 Thread Aleksey Shipilev
s 1110m43.704s > > > There are interesting test failures on my machine, which I would address > separately. Aleksey Shipilev 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/reb

Re: RFR: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-16 Thread Aleksey Shipilev
On Thu, 16 Sep 2021 09:47:16 GMT, Jan Lahoda wrote: >> This is a GUI test, and it should be `@headful`. >> >> Additional testing: >> - [x] Test still runs in default, and does not run with `!headful` > > Ah, right, I thought it is a JShell test, but it is not. Sorry for the noise. @lahodaj, wo

Re: RFR: 8247980: Exclusive execution of java/util/stream tests slows down tier1

2021-09-16 Thread Aleksey Shipilev
On Fri, 17 Sep 2021 05:47:20 GMT, Alan Bateman wrote: > No objection from me. If issues arise then I assume it can be discussed again > and we can figure out something that works for whatever CI or environment > where it is problematic. Yes, I think if tests start to fail, we look into concret

Re: RFR: 8273710: Remove redundant stream() call before forEach in jdk.jdeps

2021-09-16 Thread Aleksey Shipilev
On Mon, 13 Sep 2021 19:57:14 GMT, Andrey Turbanov wrote: > 8273710: Remove redundant stream() call before forEach in jdk.jdeps Marked as reviewed by shade (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/5498

Re: RFR: 8247980: Exclusive execution of java/util/stream tests slows down tier1

2021-09-16 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 15:09:45 GMT, Arno Zeller wrote: >> See the bug report for more details. I would appreciate if people with their >> corporate testing systems would run this through their systems to avoid >> surprises. (ping @RealCLanger, @iignatev). > > I haven't recognized problems I can d

Re: RFR: 8273797: Stop impersonating "server" VM in all VM variants

2021-09-16 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:02:19 GMT, Aleksey Shipilev wrote: > As the follow-up for Zero-specific JDK-8273494, we might want to clean up > build system logic for all VM variants: stop impersonating "server" VMs for > all of them. This basically leaves "core" and &q

Re: RFR: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-16 Thread Aleksey Shipilev
On Thu, 16 Sep 2021 09:39:25 GMT, Jan Lahoda wrote: > Marking the test headful if OK - but should `headful` also be added to the > keys in `test/langtools/TEST.ROOT`? (I am not quite sure how that works.) AFAICS, this test is in `jdk`, so it is covered by `jdk/TEST.ROOT`. I tested it with and

RFR: 8236505: Mark jdk/editpad/EditPadTest.java as @headful

2021-09-16 Thread Aleksey Shipilev
This is a GUI test, and it should be `@headful`. Additional testing: - [x] Test still runs in default, and does not run with `!headful` - Commit messages: - Fix Changes: https://git.openjdk.java.net/jdk/pull/5544/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5544&ra

Integrated: 8273804: Platform.isTieredSupported should handle the no-compiler case

2021-09-16 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:29:36 GMT, Aleksey Shipilev wrote: > Happens with Zero tests: > > > $ CONF=linux-x86_64-zero-fastdebug make exploded-test > TEST=compiler/codecache/CheckSegmentedCodeCache.java > ... > > java.lang.NullPointerException: Cannot in

Re: RFR: 8273804: Platform.isTieredSupported should handle the no-compiler case

2021-09-16 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:29:36 GMT, Aleksey Shipilev wrote: > Happens with Zero tests: > > > $ CONF=linux-x86_64-zero-fastdebug make exploded-test > TEST=compiler/codecache/CheckSegmentedCodeCache.java > ... > > java.lang.NullPointerException: Cannot in

Integrated: 8273803: Zero: Handle "zero" variant in CommandLineOptionTest.java

2021-09-16 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:16:36 GMT, Aleksey Shipilev wrote: > This currently manifests if you run Zero with compiler/codecache/cli tests > (part of tier1): > > > $ CONF=linux-x86_64-zero-fastdebug make exploded-test > TEST=compiler/codecache/cli/ > > STDERR: >

Re: RFR: 8273803: Zero: Handle "zero" variant in CommandLineOptionTest.java

2021-09-16 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 10:16:36 GMT, Aleksey Shipilev wrote: > This currently manifests if you run Zero with compiler/codecache/cli tests > (part of tier1): > > > $ CONF=linux-x86_64-zero-fastdebug make exploded-test > TEST=compiler/codecache/cli/ > > STDERR: >

Re: RFR: 8273314: Add tier4 test groups [v3]

2021-09-15 Thread Aleksey Shipilev
On Mon, 6 Sep 2021 13:22:03 GMT, Aleksey Shipilev wrote: >> During the review of JDK-8272914 that added hotspot:tier{2,3} groups, >> @iignatev suggested to create tier4 groups that capture all tests not in >> tiers{1,2,3}. I have excluded `vmTestbase` and `hotspot:tier4,` bec

Re: RFR: 8273797: Stop impersonating "server" VM in all VM variants

2021-09-15 Thread Aleksey Shipilev
On Wed, 15 Sep 2021 12:56:34 GMT, David Holmes wrote: > Did you test building all variants into one image? Yes, I did, but I think the build system is confused about the VM feature sets. I have a vague recollection that ether @magicus or someone else at one point suggested eliminating multi-va

RFR: 8273804: Platform.isTieredSupported should handle the no-compiler case

2021-09-15 Thread Aleksey Shipilev
Happens with Zero tests: $ CONF=linux-x86_64-zero-fastdebug make exploded-test TEST=compiler/codecache/CheckSegmentedCodeCache.java ... java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because "jdk.test.lib.Platform.compiler" is null at jdk.test.lib.Plat

RFR: 8273803: Zero: Handle "zero" variant in CommandLineOptionTest.java

2021-09-15 Thread Aleksey Shipilev
This currently manifests if you run Zero with compiler/codecache/cli tests (part of tier1): $ CONF=linux-x86_64-zero-fastdebug make exploded-test TEST=compiler/codecache/cli/ STDERR: java.lang.RuntimeException: Unknown VM mode. at jdk.test.lib.cli.CommandLineOptionTest.getVMTypeOption(Command

RFR: 8273797: Stop impersonating "server" VM in all VM variants

2021-09-15 Thread Aleksey Shipilev
As the follow-up for Zero-specific JDK-8273494, we might want to clean up build system logic for all VM variants: stop impersonating "server" VMs for all of them. This basically leaves "core" and "custom" variants to be handled with this patch. Additional testing: - [x] Linux x86_64 `core` bui

Re: RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-15 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 10:17:02 GMT, Aleksey Shipilev wrote: > Currently, the build system defaults the libjvm.so location to "server". > This makes looking for `libjvm.so` awkward, see JDK-8273487 for example. We > need to see if moving the libjvm.so to a proper locat

Integrated: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-15 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 10:17:02 GMT, Aleksey Shipilev wrote: > Currently, the build system defaults the libjvm.so location to "server". > This makes looking for `libjvm.so` awkward, see JDK-8273487 for example. We > need to see if moving the libjvm.so to a proper locat

Re: RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-14 Thread Aleksey Shipilev
On Fri, 10 Sep 2021 10:02:43 GMT, David Holmes wrote: >> Currently, the build system defaults the libjvm.so location to "server". >> This makes looking for `libjvm.so` awkward, see JDK-8273487 for example. We >> need to see if moving the libjvm.so to a proper location breaks anything. >> >>

Re: RFR: 8247980: Exclusive execution of java/util/stream tests slows down tier1

2021-09-13 Thread Aleksey Shipilev
On Thu, 19 Aug 2021 15:15:31 GMT, Aleksey Shipilev wrote: > See the bug report for more details. I would appreciate if people with their > corporate testing systems would run this through their systems to avoid > surprises. (ping @RealCLanger, @iignatev). @ArnoZeller, have your runs

Re: RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-10 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 14:31:19 GMT, Magnus Ihse Bursie wrote: >> Currently, the build system defaults the libjvm.so location to "server". >> This makes looking for `libjvm.so` awkward, see JDK-8273487 for example. We >> need to see if moving the libjvm.so to a proper location breaks anything. >>

Re: RFR: 8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2

2021-09-09 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 10:14:48 GMT, kabutz wrote: > …of MAX_PRIORITY-2 during refactoring > > Appears in Java 17 for the first time. > > During refactoring, the priority was changed from Thread.MAX_PRIORITY - 2 to > instead state Thread.MIN_PRIORITY - 2, which results in a negative priority, >

Re: RFR: 8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2

2021-09-09 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 10:14:48 GMT, kabutz wrote: > …of MAX_PRIORITY-2 during refactoring > > Appears in Java 17 for the first time. > > During refactoring, the priority was changed from Thread.MAX_PRIORITY - 2 to > instead state Thread.MIN_PRIORITY - 2, which results in a negative priority, >

Re: RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-09 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 15:12:27 GMT, Magnus Ihse Bursie wrote: >> Ok, I agree. Can I do a Zero-specific thing here (so that it is potentially >> cleanly backportable), and then handle the rest of the variants? > > Sure, that works for me. While we are at it, do `core` and `custom` even carry their

Re: RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-09 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 14:28:19 GMT, Magnus Ihse Bursie wrote: >> Yes, there are at least "core" and "custom": >> >> >> # All valid JVM variants >> VALID_JVM_VARIANTS="server client minimal core zero custom" > > I think we should stop these as well from impersonating the server JVM. > Preferably i

Re: RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-09 Thread Aleksey Shipilev
On Thu, 9 Sep 2021 13:02:23 GMT, David Holmes wrote: >> Currently, the build system defaults the libjvm.so location to "server". >> This makes looking for `libjvm.so` awkward, see JDK-8273487 for example. We >> need to see if moving the libjvm.so to a proper location breaks anything. >> >> A

RFR: 8273494: Zero: Put libjvm.so into "zero" folder, not "server"

2021-09-09 Thread Aleksey Shipilev
Currently, the build system defaults the libjvm.so location to "server". This makes looking for `libjvm.so` awkward, see JDK-8273487 for example. We need to see if moving the libjvm.so to a proper location breaks anything. Additional testing: - [x] Linux x86_64 Zero build - [x] Linux x86_64

Re: Patch for JDK-8273541

2021-09-09 Thread Aleksey Shipilev
On 9/9/21 2:36 PM, Kartik Ohri wrote: I would like to work on a fix for JDK-8273541 Sure, it does not seem taken yet. Submit the PR, and work there. -- Thanks, -Aleksey

Re: RFR: 8273487: Zero: Handle "zero" variant in runtime tests [v2]

2021-09-09 Thread Aleksey Shipilev
On Wed, 8 Sep 2021 13:25:27 GMT, Aleksey Shipilev wrote: >> JDK-8179317 rewritten runtime shell tests to Java. There is a little >> omission in VM variant selection, which makes Zero fail some of the tier1 >> tests, like: >> >> >> $ CONF=linux-x86_

Integrated: 8273487: Zero: Handle "zero" variant in runtime tests

2021-09-09 Thread Aleksey Shipilev
On Wed, 8 Sep 2021 10:57:33 GMT, Aleksey Shipilev wrote: > JDK-8179317 rewritten runtime shell tests to Java. There is a little omission > in VM variant selection, which makes Zero fail some of the tier1 tests, like: > > > $ CONF=linux-x86_64-zero-fastdebug make exploded-test

Integrated: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-09 Thread Aleksey Shipilev
On Fri, 3 Sep 2021 09:53:53 GMT, Aleksey Shipilev wrote: > This test runs a lot of configurations, and spends a lot of time serially. > This is especially pronounced when run in prospective tier4 runs > (JDK-8273314). There are reports of multi-hour runs (see JDK-8271613

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-08 Thread Aleksey Shipilev
On Wed, 8 Sep 2021 11:06:50 GMT, Arno Zeller wrote: > Probably it could be a better solution to add the stress keyword for slow > running or high load tests - like it is done in the hotspot part of the > tests. Then automated test run can exclude or select these test by keyword. Thought so too

Re: RFR: 8273487: Zero: Handle "zero" variant in runtime tests

2021-09-08 Thread Aleksey Shipilev
On Wed, 8 Sep 2021 10:57:33 GMT, Aleksey Shipilev wrote: > JDK-8179317 rewritten runtime shell tests to Java. There is a little omission > in VM variant selection, which makes Zero fail some of the tier1 tests, like: > > > $ CONF=linux-x86_64-zero-fastdebug make exploded-test

Re: RFR: 8273487: Zero: Handle "zero" variant in runtime tests [v2]

2021-09-08 Thread Aleksey Shipilev
rocessTools.createNativeTestProcessBuilder(ProcessTools.java:575) > > > > Additional testing: > - [x] Linux x86_64 Zero affected tests (StackGap, StackGuardPages, TestTLS) > now run Aleksey Shipilev has updated the pull request incrementally with one additional commit

RFR: 8273487: Zero: Handle "zero" variant in runtime tests

2021-09-08 Thread Aleksey Shipilev
JDK-8179317 rewritten runtime shell tests to Java. There is a little omission in VM variant selection, which makes Zero fail some of the tier1 tests, like: $ CONF=linux-x86_64-zero-fastdebug make exploded-test TEST=runtime/StackGap/TestStackGap.java STDERR: java.lang.Error: TESTBUG: unsupporte

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test [v2]

2021-09-08 Thread Aleksey Shipilev
On Tue, 7 Sep 2021 16:54:11 GMT, Alan Bateman wrote: >> you are right about /manual being for GUI - but @AlanBateman pointed me at >> few tests with libzip using it for similar reasons (e.g. long running tests). > > I don't think /manual is strictly UI but its usage is discouraged as manual > t

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test [v2]

2021-09-08 Thread Aleksey Shipilev
== > 00:12:21TEST TOTAL PASS > FAIL ERROR > 00:12:21jtreg:test/jdk/java/foreign/TestMatrix.java 3232 > 0 0 > 00:12:21 == > > real 12m20.538s > user 131m54.043s > sys 0m59.9

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-08 Thread Aleksey Shipilev
On Fri, 3 Sep 2021 09:53:53 GMT, Aleksey Shipilev wrote: > This test runs a lot of configurations, and spends a lot of time serially. > This is especially pronounced when run in prospective tier4 runs > (JDK-8273314). There are reports of multi-hour runs (see JDK-8271613

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-07 Thread Aleksey Shipilev
On Tue, 7 Sep 2021 15:04:31 GMT, Maurizio Cimadamore wrote: >> This test runs a lot of configurations, and spends a lot of time serially. >> This is especially pronounced when run in prospective tier4 runs >> (JDK-8273314). There are reports of multi-hour runs (see JDK-8271613). We >> can par

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-07 Thread Aleksey Shipilev
On Tue, 7 Sep 2021 14:30:41 GMT, Maurizio Cimadamore wrote: > So, what is the policy for defining developers tests that are not meant to be > ran on every build infra, but are meant to be run on a more casual basis by > developers working in a particular area? When we added TestMatrix we made

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-07 Thread Aleksey Shipilev
On Tue, 7 Sep 2021 14:05:46 GMT, Maurizio Cimadamore wrote: > if you still want to pursue the improvement, we can do that too. Yes, I still want to pursue this test improvement. - PR: https://git.openjdk.java.net/jdk/pull/5358

Re: RFR: 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test

2021-09-07 Thread Aleksey Shipilev
On Tue, 7 Sep 2021 13:58:48 GMT, Maurizio Cimadamore wrote: > How is this test executed? I think when this was added the idea was that this > had to be an advanced test which had to be run explicitly by users, but would > not be picked up in the various test groups/tiers. I'm defo not seeing i

Re: RFR: 8273314: Add tier4 test groups [v3]

2021-09-07 Thread Aleksey Shipilev
On Mon, 6 Sep 2021 13:22:03 GMT, Aleksey Shipilev wrote: >> During the review of JDK-8272914 that added hotspot:tier{2,3} groups, >> @iignatev suggested to create tier4 groups that capture all tests not in >> tiers{1,2,3}. I have excluded `vmTestbase` and `hotspot:tier4,` bec

Re: RFR: 8273314: Add tier4 test groups

2021-09-06 Thread Aleksey Shipilev
On Sat, 4 Sep 2021 03:13:58 GMT, Igor Ignatyev wrote: >>> > <...> I have excluded `vmTestbase` and `hotspot:tier4`<...> I have also >>> > excluded `applications` from `hotspot:tier4` <...> >>> >>> assuming the goal of tier4 is to catch the rest of the tests, I don't think >>> we should exclud

Re: RFR: 8273314: Add tier4 test groups [v3]

2021-09-06 Thread Aleksey Shipilev
0 0 > >jtreg:test/jaxp:tier4 0 0 0 0 > > == > > real 64m13.994s > user 1462m1.213s > sys 39m38.032s > > > There are interesting test failures on my machine, which I would

Re: RFR: 8273314: Add tier4 test groups [v2]

2021-09-06 Thread Aleksey Shipilev
0 0 > >jtreg:test/jaxp:tier4 0 0 0 0 > > == > > real 64m13.994s > user 1462m1.213s > sys 39m38.032s > > > There are interesting test failures on my machine, which I would

<    1   2   3   4   5   6   7   8   9   10   >