-
Notifications
You must be signed in to change notification settings - Fork 706
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
Initial CRIU serviceability infrastructure #16528
Conversation
Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
2cca9b6
to
7315480
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patches look alright to me. I'd suggest comments near the enum and array mentioning that the other exists, which file its in, and needs to be kept in sync.
7315480
to
59bd661
Compare
@ymanton made requested changes (see force push). |
Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
59bd661
to
e44143d
Compare
Missed the part about adding the file name, did so in this force push. |
@ymanton good for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Jenkins test sanity.functional xlinux,plinux,zlinux,alinux64 jdk11 |
plinux and xlinux have failed because of
I believe because the UNB machines are down. |
https://openj9.slack.com/archives/CDS7QE9HB/p1673907333439259 |
Jenkins test sanity.functional xlinux,plinux jdk11 |
Options passed to the JVM are consumed by the JIT in different places and at different points during the bootstrap process. However, often the string literals that are used for the comparison are scattered across various locations. This is particularly problematic for something like the CRIU feature where we may need to process options post restore.
This PR gathers all the string literals and puts them in an array. The reason for doing this, rather than just have them be a bunch of
#define
s in a header file, is so that for the CRIU feature post restore options processing, we can just iterate over the array and explicitly decide what we want to do with the option.This PR introduces a new enum class called
TR::ExternalOptions
, wherein each enum value has a 1-1 mapping with the string literal associated with the VM option consumed by the JIT.This PR also introduces the
JIT_METADATA_IS_PRECHECKPOINT_COMP
flag that is set on theJ9JITExceptionTable
to indicate whether a compilation was performed pre-checkpoint.