-
Notifications
You must be signed in to change notification settings - Fork 40
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
Extract crac functionality into OS-agnostic files #84
Conversation
👋 Welcome back rmarchenko! A progress list of the required criteria for merging this PR into |
@AntonKozlov @rvansa |
@wkia This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@rvansa, @AntonKozlov) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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, I've checked the stuff moved from os_linux.cpp and it matches.
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.
I would propose "Extract crac functionality into OS-agnostic files" as the title and eventual commit message, or something like that.
LGTM in the rest! Thank you.
@wkia Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
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, thanks!
@jankratochvil Hi, could you review this regarding your recent changes, please? |
commit 5d2fe34 ../../src/hotspot/share/runtime/arguments.cpp: In static member function 'static jint Arguments::finalize_vm_init_args(bool)': ../../src/hotspot/share/runtime/arguments.cpp:3235:28: error: 'crac' has not been declared 3235 | if (CRaCCheckpointTo && !crac::prepare_checkpoint()) { | ^~~~ ../../src/hotspot/share/prims/jvm.cpp: In function '_jobjectArray* JVM_Checkpoint(JNIEnv*, jarray, jobjectArray, jboolean, jlong)': ../../src/hotspot/share/prims/jvm.cpp:3853:16: error: 'crac' has not been declared 3853 | Handle ret = crac::checkpoint(fd_arr, obj_arr, dry_run, jcmd_stream, CHECK_NULL); | ^~~~ ../../src/hotspot/share/services/management.cpp: In function 'jlong get_long_attribute(jmmLongAttribute)': ../../src/hotspot/share/services/management.cpp:957:12: error: 'crac' has not been declared 957 | return crac::restore_start_time(); | ^~~~ ../../src/hotspot/share/services/management.cpp:961:21: error: 'crac' has not been declared 961 | jlong ticks = crac::uptime_since_restore(); | ^~~~ Remove a no longer used declaration of os::Linux::checkpoint_restore().
|
Fix compilation errors:
|
/integrate |
Thank you! LGTM /sponsor |
@AntonKozlov @wkia Pushed as commit f0cdb1f. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
CRaC-related functionality is moved to
crac*.hpp/cpp
files, and now it is incrac
class instead ofos
.Progress
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/crac.git pull/84/head:pull/84
$ git checkout pull/84
Update a local copy of the PR:
$ git checkout pull/84
$ git pull https://git.openjdk.org/crac.git pull/84/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 84
View PR using the GUI difftool:
$ git pr show -t 84
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/crac/pull/84.diff
Webrev
Link to Webrev Comment