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 "custom" variants to be handled 
> with this patch.
> 
> Additional testing:
>  - [x] Linux x86_64 `core` build passes, `libjvm.so` now in `core`, `jvm.cfg` 
> mentions `-core KNOWN`
>  - [x] Linux x86_64 `custom` (+serialgc,+compiler2) build passes, `libjvm.so` 
> now in `custom`, `jvm.cfg` mentions `-custom KNOWN`

Thanks!

-

PR: https://git.openjdk.java.net/jdk/pull/5526


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

2021-09-20 Thread Magnus Ihse Bursie
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 "custom" variants to be handled 
> with this patch.
> 
> Additional testing:
>  - [x] Linux x86_64 `core` build passes, `libjvm.so` now in `core`, `jvm.cfg` 
> mentions `-core KNOWN`
>  - [x] Linux x86_64 `custom` (+serialgc,+compiler2) build passes, `libjvm.so` 
> now in `custom`, `jvm.cfg` mentions `-custom KNOWN`

As for eliminating multi-JVM builds: yes, that is on my agenda, but as long as 
I'm still just working part-time it's hard to make any headway in that 
direction. The next step is to create a 
`--with-import-jvms=,[,...]`, so that it is possible to 
simulate a multi-JVM build by e.g.


bash configure --with-jvm-variant=zero --with-conf-name=zero-hotspot
make hotspot
bash configure --with-jvm-variant=server --with-conf-name=combined 
--with-import-jvms=zero:./build/$PLATFORM/jdk/lib/zero


or something like that.

When that exists and is working, and all downstream users has had time to 
adapt, then we can remove multi-JVM build support (and boy am I longing for 
that day).

If you want to help by implementing the `--with-import-jvms` options, you are 
more than welcome!

-

PR: https://git.openjdk.java.net/jdk/pull/5526


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

2021-09-20 Thread Magnus Ihse Bursie
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 "custom" variants to be handled 
> with this patch.
> 
> Additional testing:
>  - [x] Linux x86_64 `core` build passes, `libjvm.so` now in `core`, `jvm.cfg` 
> mentions `-core KNOWN`
>  - [x] Linux x86_64 `custom` (+serialgc,+compiler2) build passes, `libjvm.so` 
> now in `custom`, `jvm.cfg` mentions `-custom KNOWN`

Marked as reviewed by ihse (Reviewer).

Looks good. Thanks for waiting for my input; sorry for the delay.

-

PR: https://git.openjdk.java.net/jdk/pull/5526


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 "custom" variants to be handled 
> with this patch.
> 
> Additional testing:
>  - [x] Linux x86_64 `core` build passes, `libjvm.so` now in `core`, `jvm.cfg` 
> mentions `-core KNOWN`
>  - [x] Linux x86_64 `custom` (+serialgc,+compiler2) build passes, `libjvm.so` 
> now in `custom`, `jvm.cfg` mentions `-custom KNOWN`

@magicus, want to take a look as well?

-

PR: https://git.openjdk.java.net/jdk/pull/5526


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

2021-09-15 Thread Erik Joelsson
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 "custom" variants to be handled 
> with this patch.
> 
> Additional testing:
>  - [x] Linux x86_64 `core` build passes, `libjvm.so` now in `core`, `jvm.cfg` 
> mentions `-core KNOWN`
>  - [x] Linux x86_64 `custom` (+serialgc,+compiler2) build passes, `libjvm.so` 
> now in `custom`, `jvm.cfg` mentions `-custom KNOWN`

Marked as reviewed by erikj (Reviewer).

-

PR: https://git.openjdk.java.net/jdk/pull/5526


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-variant builds, maybe that should be the next step 
in build simplification.

-

PR: https://git.openjdk.java.net/jdk/pull/5526


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

2021-09-15 Thread David Holmes
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 "custom" variants to be handled 
> with this patch.
> 
> Additional testing:
>  - [x] Linux x86_64 `core` build passes, `libjvm.so` now in `core`, `jvm.cfg` 
> mentions `-core KNOWN`
>  - [x] Linux x86_64 `custom` (+serialgc,+compiler2) build passes, `libjvm.so` 
> now in `custom`, `jvm.cfg` mentions `-custom KNOWN`

>From a purely "mechanical" perspective this is a good simplification and 
>cleanup.

Did you test building all variants into one image?

Cheers,
David

-

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/5526