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

[GR-39967] Skip constant folding of reflection methods with side effects. #5156

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 4, 2022
@graalvmbot graalvmbot force-pushed the cs/GR-39967-reflection-plugins-class-init branch 3 times, most recently from d8a49ed to 2f3a147 Compare October 5, 2022 13:36
@graalvmbot graalvmbot force-pushed the cs/GR-39967-reflection-plugins-class-init branch from 2f3a147 to 758223b Compare October 5, 2022 18:11
@graalvmbot graalvmbot closed this Oct 6, 2022
@graalvmbot graalvmbot deleted the cs/GR-39967-reflection-plugins-class-init branch October 6, 2022 04:06
@graalvmbot graalvmbot merged commit 492384d into master Oct 6, 2022
Comment on lines +203 to +208
/**
* For some methods check if folding an invocation using reflection, i.e., by executing the
* target method and capturing the result, has undesired side effects, such as triggering
* initialization of classes that should be initialized at run time. This is based on knowledge
* about the reflection API methods implementation.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

@cstancu Is this still an issue now that the new class initialization strategy ( #4684) is being used by default?

This change seems to significantly increase the number of metadata in the image heap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants