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

Extract crac functionality into OS-agnostic files #84

Closed
wants to merge 10 commits into from

Conversation

wkia
Copy link
Contributor

@wkia wkia commented Jun 16, 2023

CRaC-related functionality is moved to crac*.hpp/cpp files, and now it is in crac class instead of os.


Progress

  • Change must not contain extraneous whitespace

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

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 16, 2023

👋 Welcome back rmarchenko! A progress list of the required criteria for merging this PR into crac will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@wkia
Copy link
Contributor Author

wkia commented Jun 16, 2023

@AntonKozlov @rvansa
Hi,
As we discussed before, I extracted crac* files. Hopefully it will help with futher java version upgrade and win/mac build.

@openjdk
Copy link

openjdk bot commented Jun 16, 2023

@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:

Extract crac functionality into OS-agnostic files

Reviewed-by: rvansa, akozlov

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 crac branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

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 /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jun 16, 2023
@mlbridge
Copy link

mlbridge bot commented Jun 16, 2023

Webrevs

Copy link
Collaborator

@rvansa rvansa left a 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.

Copy link
Member

@AntonKozlov AntonKozlov left a 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 wkia changed the title Refactoring - extracted crac files Extract crac functionality into OS-agnostic files Jun 19, 2023
@rvansa
Copy link
Collaborator

rvansa commented Jun 19, 2023

@wkia Integrating #53 regrettably brought a conflict, shouldn't be difficult to resolve, though. Thanks!

@openjdk
Copy link

openjdk bot commented Jun 20, 2023

@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.

@wkia wkia requested a review from rvansa June 21, 2023 08:01
Copy link
Collaborator

@rvansa rvansa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@wkia
Copy link
Contributor Author

wkia commented Jun 27, 2023

@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().
@jankratochvil
Copy link
Contributor

@jankratochvil Hi, could you review this regarding your recent changes, please?

wkia#1

@openjdk
Copy link

openjdk bot commented Jun 28, 2023

⚠️ @wkia This pull request contains merges that bring in commits not present in the target repository. Since this is not a "merge style" pull request, these changes will be squashed when this pull request in integrated. If this is your intention, then please ignore this message. If you want to preserve the commit structure, you must change the title of this pull request to Merge <project>:<branch> where <project> is the name of another project in the OpenJDK organization (for example Merge jdk:master).

@wkia
Copy link
Contributor Author

wkia commented Jul 3, 2023

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jul 3, 2023
@openjdk
Copy link

openjdk bot commented Jul 3, 2023

@wkia
Your change (at version e733914) is now ready to be sponsored by a Committer.

@AntonKozlov
Copy link
Member

Thank you! LGTM

/sponsor

@openjdk
Copy link

openjdk bot commented Jul 3, 2023

Going to push as commit f0cdb1f.
Since your change was applied there has been 1 commit pushed to the crac branch:

  • c48ccf5: PID adjustment on checkpoint

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jul 3, 2023
@openjdk openjdk bot closed this Jul 3, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Jul 3, 2023
@openjdk
Copy link

openjdk bot commented Jul 3, 2023

@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.

@wkia wkia deleted the crac-extract branch July 4, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants