-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8305093: Linker cache should not take layout names into account #13562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Paul Sandoz <paul.d.sandoz@googlemail.com>
Co-authored-by: Paul Sandoz <paul.d.sandoz@googlemail.com>
Fix ULE when intializing LibFallback
Co-authored-by: Maurizio Cimadamore <54672762+mcimadamore@users.noreply.github.com>
Co-authored-by: Maurizio Cimadamore <54672762+mcimadamore@users.noreply.github.com>
src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java
Show resolved
Hide resolved
The parent pull request that this pull request depends on has now been integrated and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork: git checkout NoNameCache2
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push |
@JornVernee this pull request can not be integrated into git checkout NoNameCache2
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
|
src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java
Outdated
Show resolved
Hide resolved
@JornVernee 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:
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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
/integrate |
@JornVernee Pushed as commit 67dd841. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Strip names from the function descriptors used in linkage requests. The names are not important for classification, and this will allow the cached MethodHandle/UpcallStubFactory to be shared across linkage request with the same structure, but with layouts that have different names.
I also have another implementation that avoids copying all the layouts, and instead re-implemented equals and hashCode in the LinkRequest wrapper: pr/13079...JornVernee:jdk:NoNameCache But, this seems too complex. Linking code is not very performance sensitive, so I instead went with a simpler approach in this patch.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13562/head:pull/13562
$ git checkout pull/13562
Update a local copy of the PR:
$ git checkout pull/13562
$ git pull https://git.openjdk.org/jdk.git pull/13562/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13562
View PR using the GUI difftool:
$ git pr show -t 13562
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13562.diff
Webrev
Link to Webrev Comment