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-51436] Annotate Native Images Sources with @BasedOnJDKFile #8421

Closed

Conversation

graalvmbot
Copy link
Collaborator

@graalvmbot graalvmbot commented Feb 21, 2024

This adds the @BasedOnJDKFile to several classes to express their relationship to files in the openjdk.

The annotation can be placed on types, fields and methods and may include a line range. Examples:

Annotation on a class without line range (full file is related):
@BasedOnJDKFile("src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template")
public final class Target_java_nio_DirectByteBuffer {
Annotation on method with a line range:
    @BasedOnJDKFile("src/hotspot/os/bsd/os_bsd.cpp#L2382-L2407")
    private static long getThreadCpuTime(int machThread, boolean includeSystemTime) {

Refer to the Javadoc of BasedOnJDKClass for the most up to date documentation.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 21, 2024
@graalvmbot graalvmbot force-pushed the je/svm-based-on-jdk-source-GR-51436-annotate branch from 0a92111 to f7831ce Compare February 21, 2024 14:31
@graalvmbot graalvmbot closed this Feb 22, 2024
@graalvmbot graalvmbot deleted the je/svm-based-on-jdk-source-GR-51436-annotate branch February 22, 2024 14:41
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

2 participants