Skip to content

Conversation

@coleenp
Copy link
Contributor

@coleenp coleenp commented Sep 19, 2025

This makes oopFactory and deoptimization the only friends of private ArrayKlass::allocate_instance. This is similar to the PR openjdk/jdk#27372 in mainline with some extra handling for new_refArray (rather than calling RefArrayKlass::allocate_instance() directly.
Tested with tier1-4.


Progress

  • Change must not contain extraneous whitespace

Issue

  • JDK-8367415: Fully encapsulate array allocation in oopFactory (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1602

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 19, 2025

👋 Welcome back coleenp! 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

openjdk bot commented Sep 19, 2025

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

8367415: Fully encapsulate array allocation in oopFactory

Reviewed-by: fparain

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

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 19, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 19, 2025

Webrevs

static ArrayDescription array_layout_selection(Klass* element, ArrayProperties properties);

virtual objArrayOop allocate_instance(int length, ArrayProperties props, TRAPS);
public:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this needed? There's already one at line 60.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not. I moved the methods to be where they are in mainline. Thanks for noticing this.

@openjdk
Copy link

openjdk bot commented Sep 22, 2025

@coleenp this pull request can not be integrated into lworld due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout oopFactory
git fetch https://git.openjdk.org/valhalla.git lworld
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge lworld"
git push

@openjdk openjdk bot added merge-conflict Pull request has merge conflict with target branch and removed ready Pull request is ready to be integrated labels Sep 22, 2025
@openjdk openjdk bot added ready Pull request is ready to be integrated and removed merge-conflict Pull request has merge conflict with target branch labels Sep 22, 2025
@coleenp
Copy link
Contributor Author

coleenp commented Sep 24, 2025

Thanks Fred.
/integrate

@openjdk
Copy link

openjdk bot commented Sep 24, 2025

Going to push as commit 77d067c.
Since your change was applied there have been 96 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 Sep 24, 2025
@openjdk openjdk bot closed this Sep 24, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 24, 2025
@openjdk
Copy link

openjdk bot commented Sep 24, 2025

@coleenp Pushed as commit 77d067c.

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

@coleenp coleenp deleted the oopFactory branch September 24, 2025 18:32
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