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

Post-restore execution mode change semantics #16867

Open
dsouzai opened this issue Mar 8, 2023 · 1 comment
Open

Post-restore execution mode change semantics #16867

dsouzai opened this issue Mar 8, 2023 · 1 comment
Labels
comp:jit comp:vm criu Used to track CRIU snapshot related work

Comments

@dsouzai
Copy link
Contributor

dsouzai commented Mar 8, 2023

This issue tracks work needed to implement the changes in execution mode listed below pre-checkpoint to post-restore.

-Xint to -Xjit/-Xaot (and vice versa)

0.38

Not supported.

Post 0.38

When -Xint is specified, the JIT DLL does not get loaded. If there is a desire to support -Xjit or -Xaot being specified post-restore, then the JIT dll will need to be loaded in the normal manner that occurs at JVM startup (which means going through the relevant INIT_STAGE stages, namely:

  1. DLL_LOAD_TABLE_FINALIZED
  2. SYSTEM_CLASSLOADER_SET
  3. JIT_INITIALIZED
  4. ABOUT_TO_BOOTSTRAP
  5. VM_INITIALIZATION_COMPLETE

-Xnojit -Xnoaot to -Xjit/-Xaot

0.38

Not supported.

Post 0.38

When -Xnojit -Xnoaot is specified, the JIT DLL (I believe) gets loaded, but a lot of the bootstrap logic in runtime/compiler/control/DLLMain.cpp will not run because neither AOT nor JIT compilation is possible. This is probably much harder to to get working, but maybe something that can be done in a manner similar to going from -Xint to -Xjit/-Xaot.

@dsouzai dsouzai added comp:vm comp:jit criu Used to track CRIU snapshot related work labels Mar 8, 2023
@dsouzai
Copy link
Contributor Author

dsouzai commented Mar 8, 2023

@tajila @vijaysun-omr feel free to update the main description as needed.

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

No branches or pull requests

1 participant