Skip to content
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

Copy local signature from MethodHandleNatives.resolve #20700

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

theresa-m
Copy link
Contributor

@theresa-m theresa-m commented Nov 28, 2024

For the case mentioned in #20189 (comment) sig1 in j9bcv_checkClassLoadingConstraintsForSignature should be copied but sig2 does not need to be copied. I added an additional boolean for each signature and it is only set to false if the signature is found in a class memory segment.

Related to: #20189

@theresa-m theresa-m changed the title Verify name is in class memory segment for copying Copy local signature from MethodHandleNatives.resolve Nov 29, 2024
@theresa-m theresa-m force-pushed the fix_20189 branch 2 times, most recently from 8211b66 to ec0efc6 Compare November 29, 2024 17:08
@theresa-m theresa-m requested a review from hangshao0 November 29, 2024 17:10
runtime/vm/lookupmethod.c Outdated Show resolved Hide resolved
@hangshao0 hangshao0 requested a review from fengxue-IS December 2, 2024 14:42
@hangshao0
Copy link
Contributor

Adding @fengxue-IS as reviewer.

runtime/oti/bcverify_api.h Show resolved Hide resolved
runtime/oti/bcverify_api.h Outdated Show resolved Hide resolved
runtime/oti/bcverify_api.h Outdated Show resolved Hide resolved
@theresa-m theresa-m force-pushed the fix_20189 branch 3 times, most recently from 8e4c875 to c98038d Compare December 2, 2024 16:40
@theresa-m theresa-m requested a review from fengxue-IS December 2, 2024 16:56
Copy link
Contributor

@fengxue-IS fengxue-IS left a comment

Choose a reason for hiding this comment

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

lgtm

@hangshao0
Copy link
Contributor

Jenkins test sanity.functional,extended plinuxval jdknext

@hangshao0
Copy link
Contributor

Jenkins test sanity amac jdk21

@hangshao0
Copy link
Contributor

Jenkins test sanity.functional,extended alinux jdk11

@hangshao0 hangshao0 merged commit 5786c45 into eclipse-openj9:master Dec 3, 2024
12 checks passed
Comment on lines +1326 to 1327
true,
true);
Copy link
Contributor

Choose a reason for hiding this comment

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

These arguments should be TRUE, not true or false: the argument types are BOOLEAN, not bool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants