Skip to content

Conversation

graalvmbot
Copy link
Collaborator

The goal of this PR is to execute potentially dangerous bootstrap methods at run time instead of at build time.

There are now three types of bootstrap methods:

  • Executed at build time. Those are hardcoded in the JDK and are considered safe.
  • Intrinsified at build time. They are considered safe similarly to the previous ones, but instead of executing the bootstrap method and replacing it with the callsite, they are intrinsified. This currently only applies to makeConcatWithConstants.
  • Executed at run time. Those are the default bootstrap methods, which can be either methods from the JDK, or user methods.

Note that without openjdk/jdk#14927, all bootstrap methods are either executed or intrinsified at build-time. This changes with the JDK pull request as the call site is not automatically linked when we retrieve the bootstrap method.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 15, 2023
@graalvmbot graalvmbot force-pushed the scoppey/GR-45806/bootstrap-method-run-time branch from ac9e5d6 to a32f26f Compare December 6, 2023 00:03
@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. and removed OCA Verified All contributors have signed the Oracle Contributor Agreement. labels Dec 6, 2023
@graalvmbot graalvmbot force-pushed the scoppey/GR-45806/bootstrap-method-run-time branch from a32f26f to 43b6039 Compare December 6, 2023 01:51
@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels Dec 6, 2023
@graalvmbot graalvmbot force-pushed the scoppey/GR-45806/bootstrap-method-run-time branch 3 times, most recently from 029dd53 to 2114fd6 Compare December 6, 2023 17:23
@graalvmbot graalvmbot force-pushed the scoppey/GR-45806/bootstrap-method-run-time branch from 2114fd6 to cb0727b Compare December 6, 2023 22:32
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.

2 participants