-
Notifications
You must be signed in to change notification settings - Fork 57
8326201: [S390] Need to bailout cleanly if creation of stubs fails when code cache is out of space #170
8326201: [S390] Need to bailout cleanly if creation of stubs fails when code cache is out of space #170
Conversation
👋 Welcome back amitkumar! A progress list of the required criteria for merging this PR into |
@offamitkumar 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 11 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this 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 (@RealLucy) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
Got these merge conflicts, looks a clean backport: amitkumar@Amits-MacBook-Pro jdk22u % git diff
diff --cc src/hotspot/cpu/s390/s390.ad
index 9f4e182a9e4,5fcb885cdc3..00000000000
--- a/src/hotspot/cpu/s390/s390.ad
+++ b/src/hotspot/cpu/s390/s390.ad
@@@ -1,6 -1,6 +1,11 @@@
//
++<<<<<<< HEAD
+// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
+// Copyright (c) 2017, 2022 SAP SE. All rights reserved.
++=======
+ // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
+ // Copyright (c) 2017, 2024 SAP SE. All rights reserved.
++>>>>>>> d5f3d5c8cc3 (8326201: [S390] Need to bailout cleanly if creation of stubs fails when code cache is out of space)
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
//
// This code is free software; you can redistribute it and/or modify it
@@@ -1446,7 -1404,8 +1451,12 @@@ int HandlerImpl::emit_exception_handler
C2_MacroAssembler _masm(&cbuf);
address base = __ start_a_stub(size_exception_handler());
++<<<<<<< HEAD
+ if (base == NULL) {
++=======
+ if (base == nullptr) {
+ ciEnv::current()->record_failure("CodeCache is full");
++>>>>>>> d5f3d5c8cc3 (8326201: [S390] Need to bailout cleanly if creation of stubs fails when code cache is out of space)
return 0; // CodeBuffer::expand failed
}
@@@ -1467,7 -1426,8 +1477,12 @@@ int HandlerImpl::emit_deopt_handler(Cod
C2_MacroAssembler _masm(&cbuf);
address base = __ start_a_stub(size_deopt_handler());
++<<<<<<< HEAD
+ if (base == NULL) {
++=======
+ if (base == nullptr) {
+ ciEnv::current()->record_failure("CodeCache is full");
++>>>>>>> d5f3d5c8cc3 (8326201: [S390] Need to bailout cleanly if creation of stubs fails when code cache is out of space)
return 0; // CodeBuffer::expand failed
} |
3368cf9
to
2309357
Compare
I performed the testing & didn't see any new failure appearing. |
NULL to nullptr change wasn't backported. So I got merge conflict in those lines. I'm marking it as clean, if it's not right, I'll be happy to go for formal review as well. cc: @RealLucy :-) |
/clean |
@offamitkumar Only OpenJDK Committers can use the |
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.
|
Sorry. My advice was wrong. I wasn't aware you need to be committer (in the jdk-updates project) to use /clean. Was a borderline case anyway for forced clean status. |
/approval request This issue affects JDK-22. So backporting it on s390x, as done by PPC as well. |
@offamitkumar |
/approval request This issue affects JDK-22. So backporting it on s390x, as done by PPC as well. |
@offamitkumar |
Thanks Lutz for review, /integrate |
@offamitkumar |
/sponsor |
Going to push as commit 5c15483.
Your commit was automatically rebased without conflicts. |
@shipilev @offamitkumar Pushed as commit 5c15483. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
This pull request contains a backport of commit d5f3d5c8 from the openjdk/jdk repository.
The commit being backported was authored by Amit Kumar on 21 Feb 2024 and was reviewed by Lutz Schmidt and Martin Doerr.
Thanks!
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk22u.git pull/170/head:pull/170
$ git checkout pull/170
Update a local copy of the PR:
$ git checkout pull/170
$ git pull https://git.openjdk.org/jdk22u.git pull/170/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 170
View PR using the GUI difftool:
$ git pr show -t 170
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk22u/pull/170.diff
Webrev
Link to Webrev Comment