Skip to content

8381563: [lworld] SharedRuntime::allocate_inline_types hits "buffer not of expected class" assert#2294

Closed
rwestrel wants to merge 5 commits intoopenjdk:lworldfrom
rwestrel:JDK-8381563
Closed

8381563: [lworld] SharedRuntime::allocate_inline_types hits "buffer not of expected class" assert#2294
rwestrel wants to merge 5 commits intoopenjdk:lworldfrom
rwestrel:JDK-8381563

Conversation

@rwestrel
Copy link
Copy Markdown
Collaborator

@rwestrel rwestrel commented Apr 2, 2026

Before allocating a new buffer for an value argument, SharedRuntime::allocate_inline_types_impl() looks for the buffer argument for that value in the compiled frame at the call. The current logic for that always uses the compiled calling convention which is wrong when SharedRuntime::allocate_inline_types_impl() is called from a ro entry point.


Progress

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

Issue

  • JDK-8381563: [lworld] SharedRuntime::allocate_inline_types hits "buffer not of expected class" assert (Bug - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2294

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2294.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Apr 2, 2026

👋 Welcome back roland! A progress list of the required criteria for merging this PR into lworld 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
Copy Markdown

openjdk bot commented Apr 2, 2026

@rwestrel 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:

8381563: [lworld] SharedRuntime::allocate_inline_types hits "buffer not of expected class" assert

Reviewed-by: thartmann

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 6 new commits pushed to the lworld 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 lworld branch, type /integrate in a new comment.

@rwestrel rwestrel marked this pull request as ready for review April 8, 2026 09:08
@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 8, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge bot commented Apr 8, 2026

Webrevs

Copy link
Copy Markdown
Member

@TobiHartmann TobiHartmann left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for quickly addressing this! I'll re-run testing and will report back once it all passed.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Apr 8, 2026
@TobiHartmann
Copy link
Copy Markdown
Member

All tests passed.

@rwestrel
Copy link
Copy Markdown
Collaborator Author

rwestrel commented Apr 8, 2026

@TobiHartmann thanks for the review

@rwestrel
Copy link
Copy Markdown
Collaborator Author

rwestrel commented Apr 8, 2026

/integrate

@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 8, 2026

Going to push as commit f3fe993.
Since your change was applied there have been 6 commits pushed to the lworld branch:

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Apr 8, 2026

@rwestrel Pushed as commit f3fe993.

💡 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

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants