Skip to content

Conversation

@jatin-bhateja
Copy link
Member

@jatin-bhateja jatin-bhateja commented Mar 11, 2025

This bug fix patch addressed an assertion failure due to unexpected register operand encoding.
AVX2 flavour of instruction "vpcmpeqq" expects to operate over XMM registers from lower register bank (0-15), in this case, the register mask associated with the destination vector operand of the matcher pattern also includes registers from the higher bank.

The issue can be reliably reproduced if we modify the static allocation order of XMM register through AD file change.
Existing bug JDK-8343294 already tracks the requirement to randomize the allocation ordering.

Kindly review and share your feedback.

Best Regards,
Jatin


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-8350840: C2: x64 Assembler::vpcmpeqq assert: failed: XMM register should be 0-15 (Bug - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 23979

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 11, 2025

👋 Welcome back jbhateja! 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 Mar 11, 2025

@jatin-bhateja 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:

8350840: C2: x64 Assembler::vpcmpeqq assert: failed: XMM register should be 0-15

Reviewed-by: sviswanathan, kvn

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 24 new commits pushed to the master branch:

  • 02c850f: 8350982: -server|-client causes fatal exception on static JDK
  • 2371696: 8303770: Remove Baltimore root certificate expiring in May 2025
  • f16a742: 8351626: Update remaining icons to SVG format
  • a21fa46: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk
  • 3b189e0: 8351345: [IR Framework] Improve reported disabled IR verification messages
  • 95b66d5: 8351700: Remove code conditional on BarrierSetNMethod being null
  • 84f87dd: 8351665: Remove unused UseNUMA in os_aix.cpp
  • 4be502e: 8350642: Interpreter: Upgrade CountBytecodes to 64 bit on 64 bit platforms
  • 1fe4526: 8350194: Last 2 parameters of ReturnNode::ReturnNode are swapped in the declaration
  • 1d147cc: 8351484: Race condition in max stats in MonitorList::add
  • ... and 14 more: https://git.openjdk.org/jdk/compare/4cf63160ad575d49dbe70f128cd36aba22b8f2ff...master

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 added the rfr Pull request is ready for review label Mar 11, 2025
@openjdk
Copy link

openjdk bot commented Mar 11, 2025

@jatin-bhateja 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.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Mar 11, 2025
@mlbridge
Copy link

mlbridge bot commented Mar 11, 2025

Webrevs

Copy link

@sviswa7 sviswa7 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 11, 2025
Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Looks fine to me too. Let me test it before approval.

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

My testing passed.

@jatin-bhateja
Copy link
Member Author

Thanks @vnkozlov, @sviswa7

@jatin-bhateja
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Mar 13, 2025

Going to push as commit 41cc049.
Since your change was applied there have been 30 commits pushed to the master branch:

  • a347ecd: 8350905: Shenandoah: Releasing a WeakHandle's referent may extend its lifetime
  • 5502ce7: 8351699: Problem list com/sun/jdi/JdbStopInNotificationThreadTest.java with ZGC
  • cdf7632: 8351444: Shenandoah: Class Unloading may encounter recycled oops
  • 930455b: 8351640: Print reason for making method not entrant
  • 895f64a: 8351142: Add JFR monitor deflation and statistics events
  • db531bf: 8351881: Tidy complains about missing "alt" attribute
  • 02c850f: 8350982: -server|-client causes fatal exception on static JDK
  • 2371696: 8303770: Remove Baltimore root certificate expiring in May 2025
  • f16a742: 8351626: Update remaining icons to SVG format
  • a21fa46: 8351309: test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java fails on static-jdk
  • ... and 20 more: https://git.openjdk.org/jdk/compare/4cf63160ad575d49dbe70f128cd36aba22b8f2ff...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 13, 2025
@openjdk openjdk bot closed this Mar 13, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 13, 2025
@openjdk
Copy link

openjdk bot commented Mar 13, 2025

@jatin-bhateja Pushed as commit 41cc049.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

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

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants