Skip to content

8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check#622

Closed
zangcq wants to merge 4 commits intoopenjdk:masterfrom
zangcq:jbs/8261235
Closed

8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check#622
zangcq wants to merge 4 commits intoopenjdk:masterfrom
zangcq:jbs/8261235

Conversation

@zangcq
Copy link
Copy Markdown
Contributor

@zangcq zangcq commented Feb 12, 2025

Hi all,

This is backport JDK-8261235 from jdk17 to jdk8u-dev, to fix C1 compilation failed in HugeMethods.

File 'hotspot/test/compiler/c1/TestTooManyVirtualRegistersMain.java' remove annotation ' @requires vm.compiler1.enabled
'
other file mainly in copyrighht year different.

it's necessary for jdk8u-dev.

Change has been verified locally, we do test jdk-tier1 tier2 and hotspot-tier1 passed, no risk.

Issue

JDK-8261235 : C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8261235 needs maintainer approval
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/622/head:pull/622
$ git checkout pull/622

Update a local copy of the PR:
$ git checkout pull/622
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/622/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 622

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/622.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Feb 12, 2025
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Feb 12, 2025

Hi @zangcq, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user zangcq" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk
Copy link
Copy Markdown

openjdk bot commented Feb 12, 2025

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

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

8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check

Reviewed-by: roland, serb, chagedorn
Backport-of: 84182855307ec8c370aceeaed839c545b7ae1d69

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 21 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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@rwestrel, @mrserb) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Feb 12, 2025

/covered

@bridgekeeper bridgekeeper bot added the oca-verify Needs verification of OCA signatory status label Feb 12, 2025
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Feb 12, 2025

Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@zangcq zangcq changed the title 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check Backport 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check Feb 12, 2025
@zangcq zangcq changed the title Backport 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check Feb 18, 2025
@zangcq zangcq changed the title 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check Backport 84182855 "8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check" Feb 20, 2025
@zangcq zangcq changed the title Backport 84182855 "8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check" Backport 84182855307ec8c370aceeaed839c545b7ae1d69 Feb 21, 2025
@openjdk openjdk bot changed the title Backport 84182855307ec8c370aceeaed839c545b7ae1d69 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check Feb 21, 2025
@openjdk
Copy link
Copy Markdown

openjdk bot commented Feb 21, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added the backport Port of a pull request already in a different code base label Feb 21, 2025
@bridgekeeper bridgekeeper bot removed oca Needs verification of OCA signatory status oca-verify Needs verification of OCA signatory status labels Mar 10, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 10, 2025
@mlbridge
Copy link
Copy Markdown

mlbridge bot commented Mar 10, 2025

Webrevs

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Mar 12, 2025

Hi @chhagedorn , I will backport your patch to jdk8 , could you please review this patch?

Copy link
Copy Markdown
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.

Otherwise, looks good to me!

assert(_insertion_buffer.lir_list() == _insert_list, "wrong insertion buffer");

LIR_Opr to_opr = LIR_OprFact::virtual_register(to_interval->reg_num(), to_interval->type());
LIR_Opr to_opr =get_virtual_register(to_interval);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
LIR_Opr to_opr =get_virtual_register(to_interval);
LIR_Opr to_opr = get_virtual_register(to_interval);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks for your suggestion, Fixed :-)

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Mar 14, 2025

Hi @gnu-andrew , could you please review this patch? hagedorn just have read-only permissions.

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Mar 18, 2025

/approval

@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 18, 2025

@zangcq usage: /approval [<id>] (request|cancel) [<text>]

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Mar 18, 2025

/approval 8261235 request C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check

@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 18, 2025

@zangcq usage: /approval [<id>] (request|cancel) [<text>]

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Mar 18, 2025

/approval request allow 8261235

@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 18, 2025

@zangcq
8261235: The approval request has been created successfully.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Mar 18, 2025
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Apr 15, 2025

@zangcq This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented May 6, 2025

Kindly ping @gnu-andrew , could you please review this patch? hagedorn just have read-only permissions.

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Mar 11, 2026

@zangcq This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@mrserb
Copy link
Copy Markdown
Member

mrserb commented Mar 11, 2026

/touch

@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 11, 2026

@mrserb The pull request is being re-evaluated and the inactivity timeout has been reset.

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Apr 9, 2026

@zangcq This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Apr 9, 2026
* @compile TestTooManyVirtualRegisters.jasm
* @run main/othervm -Xbatch -XX:CompileCommand=dontinline,compiler.c1.TestExceptionBlockWithPredecessors::*
* compiler.c1.TestTooManyVirtualRegistersMain
*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note that there is a typo here, the wrong name is used for CompileCommand.
I have filed: https://bugs.openjdk.org/browse/JDK-8381880

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Appreciate it for your comments,should we fix this typo in this pr?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no that is a separate issue, and it does not affect the ability to reproduce the bug.

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Apr 13, 2026

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Apr 13, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 13, 2026

@zangcq
Your change (at version db5b350) is now ready to be sponsored by a Committer.

@openjdk openjdk bot removed sponsor Pull request is ready to be sponsored ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 13, 2026
@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented Apr 13, 2026

/sponsor

@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 13, 2026

@jerboaa This PR has not yet been marked as ready for integration.

@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented Apr 13, 2026

@zangcq You need to issue /template append and confirm the AI policy before this can be integrated.

@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Apr 13, 2026

/template append - [x] I confirm that I make this contribution in accordance with the OpenJDK Interim AI Policy

@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 13, 2026

@zangcq The pull request template has been appended to the pull request body

@openjdk openjdk bot added sponsor Pull request is ready to be sponsored ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 13, 2026
@zangcq
Copy link
Copy Markdown
Contributor Author

zangcq commented Apr 13, 2026

@zangcq You need to issue /template append and confirm the AI policy before this can be integrated.

Thanks for your advice,done

@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented Apr 13, 2026

/sponsor

@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 13, 2026

Going to push as commit 8dc952f.
Since your change was applied there have been 21 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 13, 2026
@openjdk openjdk bot closed this Apr 13, 2026
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Apr 13, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 13, 2026

@jerboaa @zangcq Pushed as commit 8dc952f.

💡 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

backport Port of a pull request already in a different code base integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

5 participants