Skip to content

Conversation

@eme64
Copy link
Contributor

@eme64 eme64 commented Nov 27, 2025

@MBaesken Reported this issue on windows:

TestAliasingCheckPreLimitNotAvailable_all-flags-fixed-stress-seed.jtr and TestAliasingCheckPreLimitNotAvailable_all-flags-no-stress-seed.jtr show failures on WIndows :

[0.095s][error][gc] Failed to lookup symbol: VirtualAlloc2
Error occurred during initialization of VM
ZGC requires Windows version 1803 or later

AIX fails too :
Error occurred during initialization of VM
Option -XX:+UseZGC not supported

I learned a small lesson here: @requires vm.gc.Z is much smarter than checking that no other GC is set, or ZGC is set. It also checks if ZGC is available, which is not always the case, e.g. on the reported Windows machne.

@MBaesken Can you please confirm that this fixes the test for you?


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8372685: C2 SuperWord: wrong requires in test after JDK-8371146 (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28537/head:pull/28537
$ git checkout pull/28537

Update a local copy of the PR:
$ git checkout pull/28537
$ git pull https://git.openjdk.org/jdk.git pull/28537/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28537

View PR using the GUI difftool:
$ git pr show -t 28537

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28537.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 27, 2025

👋 Welcome back epeter! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 27, 2025

@eme64 This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8372685: C2 SuperWord: wrong requires in test after JDK-8371146

Reviewed-by: chagedorn, mbaesken

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 11 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title JDK-8372685 8372685: C2 SuperWord: wrong requires in test after JDK-8371146 Nov 27, 2025
@openjdk
Copy link

openjdk bot commented Nov 27, 2025

@eme64 The following label will be automatically applied to this pull request:

  • hotspot-compiler

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@eme64 eme64 marked this pull request as ready for review November 27, 2025 14:04
@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 27, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 27, 2025

Webrevs

Copy link
Member

@chhagedorn chhagedorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was hard to spot, looks good and trivial but let's wait for @MBaesken to confirm.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 27, 2025
@MBaesken
Copy link
Member

MBaesken commented Nov 27, 2025

ZGC requires Windows version 1803 or later

Maybe this can be improved to something like 'ZGC requires Windows 10 version 1803, Windows 11 or Windows server 2019 or later' .
In fact, not all Windows server 2016 have VirtualAlloc2 (see also this discussion microsoft/ebpf-for-windows#704 ) .
Our test machine with Windows server 2016 generated the error above .

Unfortunately MS claims here
https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc2
Windows 10 [desktop apps only] / Windows Server 2016 [desktop apps only]
without stating any OS versions.

@eme64
Copy link
Contributor Author

eme64 commented Nov 27, 2025

@MBaesken Thanks for the additional information!

I leave it up to you if you want to file an RFE for the error message. I don't have the expertise on Windows nor on GC.

Can you confirm that this change fixes your issue though? Because I could not reproduce the issue on my machine, so I'm relying on you here ;)

@MBaesken
Copy link
Member

Can you confirm that this change fixes your issue though? Because I could not reproduce the issue on my machine, so I'm relying on you here ;)

This fixes the issue on all our machines where the problem showed up yesterday!

Copy link
Member

@MBaesken MBaesken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MBaesken
Copy link
Member

I leave it up to you if you want to file an RFE for the error message. I don't have the expertise on Windows nor on GC.

@xmas92 , @jsikstro what do you think ?
Is this about the 'ZGC requires Windows version 1803 or later' message that surprised us a little bit because we see it on Windows server 2016 , but the 1803 looks like it refers to some update of good old Win 10 .

@jsikstro
Copy link
Member

@MBaesken 1803 seems to refer to both a Windows 10 and Windows Server 2016 (internal) release number/version. Here's a version list of the old semi-annual releases of Windows Server 2016: https://en.wikipedia.org/wiki/Windows_Server#Semi-Annual_releases_(discontinued)

@MBaesken
Copy link
Member

@MBaesken 1803 seems to refer to both a Windows 10 and Windows Server 2016 (internal) release number/version. Here's a version list of the old semi-annual releases of Windows Server 2016: https://en.wikipedia.org/wiki/Windows_Server#Semi-Annual_releases_(discontinued)

Thanks !
The wikipedia says 'semi-annual releases do not include any desktop environments. Instead, they are restricted to the Nano Server configuration installed in a Docker container,[17][29] and the Server Core configuration, licensed only to serve as a container host' so this sounds like it is a rather special 'flavor' of Win Server 2016 .
So maybe it is no wonder what we get the warning and have no VirtualAlloc2 on our Win Server 2016 test machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler [email protected] ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

4 participants