Skip to content

CRIU adds unqualified exports java.base/jdk.crac when CRaC is enabled #18959

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

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

JasonFengJ9
Copy link
Member

@JasonFengJ9 JasonFengJ9 commented Feb 14, 2024

CRIU adds unqualified exports java.base/jdk.crac when CRaC is enabled

Use Module.implAddExports("jdk.crac") to export java.base/jdk.crac unconditionally when the CRaC is enabled;
Refactored throwExceptionHelper(currentThread, errCode);
Also fixed addPackageDefinition() usage in JVM_AddModulePackage().

Resolve RTC workitem 150440.

Signed-off-by: Jason Feng [email protected]

@JasonFengJ9 JasonFengJ9 added comp:vm criu Used to track CRIU snapshot related work labels Feb 14, 2024
@JasonFengJ9 JasonFengJ9 requested a review from tajila February 14, 2024 23:04
@tajila
Copy link
Contributor

tajila commented Feb 21, 2024

@JasonFengJ9 I think you'll need to rebase, we got rid of the static initializer code in InterCRIUSupport, it was causing bootstrap issues with MH

@JasonFengJ9
Copy link
Member Author

I think you'll need to rebase, we got rid of the static initializer code in InterCRIUSupport, it was causing bootstrap issues with MH

Rebased, moved Module.implAddExports("jdk.crac") into J9VMInternals to export java.base/jdk.crac unconditionally when the CRaC is enabled.
@tajila This is ready for another look.

@tajila
Copy link
Contributor

tajila commented Feb 21, 2024

jenkins test sanity alinux jdk11

@tajila
Copy link
Contributor

tajila commented Feb 21, 2024

jenkinst test sanity plinux jdk21

Use Module.implAddExports("jdk.crac") to export
java.base/jdk.crac unconditionally when the CRaC is enabled;
Refactored throwExceptionHelper(currentThread, errCode);
Also fixed addPackageDefinition() usage in JVM_AddModulePackage().

Signed-off-by: Jason Feng <[email protected]>
@JasonFengJ9
Copy link
Member Author

Rebased and resolved the conflict.
Previous PR build https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.functional_aarch64_linux_Personal/266/ - passed

@tajila
Copy link
Contributor

tajila commented Feb 23, 2024

jenkins test sanity win jdk8

@tajila
Copy link
Contributor

tajila commented Feb 23, 2024

jenkins test sanity plinux jdk21

@JasonFengJ9
Copy link
Member Author

https://openj9-jenkins.osuosl.org/job/Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0/402/console

11:21:48  init:
11:21:48      [mkdir] Created dir: F:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0\jvmtest\functional\JLM_Tests
11:21:48      [mkdir] Created dir: F:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0\aqa-tests\functional\JLM_Tests\bin
11:21:48  
11:21:48  BUILD FAILED
11:21:48  F:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0\aqa-tests\TKG\scripts\build_test.xml:95: The following error occurred while executing this line:
11:21:48  F:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0\aqa-tests\functional\JLM_Tests\build.xml:162: The following error occurred while executing this line:
11:21:48  F:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0\aqa-tests\functional\JLM_Tests\build.xml:54: Execute failed: java.io.IOException: Cannot run program "awk" (in directory "F:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Personal_testList_0\aqa-tests\functional\JLM_Tests"): CreateProcess error=2, The system cannot find the file specified
11:21:48  	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

It seems an infra error.

@pshipton
Copy link
Member

It's #18998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm criu Used to track CRIU snapshot related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants