Skip to content

Conversation

@y1yang0
Copy link
Member

@y1yang0 y1yang0 commented Mar 25, 2022

We encountered this problem in downstream JDK. This is a backport of JDK-8283672, which simply removes several diagnostic flags, build passed. There is a related fix https://bugs.openjdk.java.net/browse/JDK-8159715, I would backport it after the current fix merged.

Original changeset: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/a1e41855499b

Please help review it.

Thanks.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8072422: Cleanup: Remove some unused flags/code in loop optimizations

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk8u-dev pull/22/head:pull/22
$ git checkout pull/22

Update a local copy of the PR:
$ git checkout pull/22
$ git pull https://git.openjdk.java.net/jdk8u-dev pull/22/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22

View PR using the GUI difftool:
$ git pr show -t 22

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk8u-dev/pull/22.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 25, 2022

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

@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 25, 2022
@mlbridge
Copy link

mlbridge bot commented Mar 25, 2022

Webrevs

@y1yang0 y1yang0 changed the title 8283672: Cleanup: Remove some unused flags/code in loop optimizations 8072422: Cleanup: Remove some unused flags/code in loop optimizations Mar 25, 2022
@jerboaa
Copy link
Contributor

jerboaa commented Mar 25, 2022

@kelthuzadx Skara tooling doesn't recognize this as a backport. Please use pull request title Backport <sha-of-original-commit> which should then let the bots do it's thing and figure out it's a backport and change the title back to the right bug description.

With that said, what are you trying to do? Looking at both bugs it sounds like if we don't introduce JDK-8072422, then JDK-8159715 won't be an issue? If you are seeing an issue, without it I strongly encourage you to bring in the fix without the cleanup patch.

@y1yang0
Copy link
Member Author

y1yang0 commented Mar 25, 2022

Please use pull request title Backport <sha-of-original-commit> which should then let the bots do it's thing and figure out it's a backport and change the title back to the right bug description.

Thanks, I will do that.

With that said, what are you trying to do? Looking at both bugs it sounds like if we don't introduce JDK-8072422, then JDK-8159715 won't be an issue? If you are seeing an issue, without it I strongly encourage you to bring in the fix without the cleanup patch.

We do need the cleanup patch, because dragonwell-project/dragonwell8#305 reports a crash due to use of UnrollLoopLimit, this flag is not supposed to be used by end users, it could be removed by cleanup patch. As I understand, the cleanup patch introduces another problem that can be fixed by JDK-8159715, so once cleanup backport is merged, I will backport JDK-8159715 as well.

@y1yang0 y1yang0 changed the title 8072422: Cleanup: Remove some unused flags/code in loop optimizations Backport 69d14c811bfd6085069ec0ffbf411626831ab791 Mar 25, 2022
@openjdk openjdk bot changed the title Backport 69d14c811bfd6085069ec0ffbf411626831ab791 8072422: Cleanup: Remove some unused flags/code in loop optimizations Mar 25, 2022
@openjdk
Copy link

openjdk bot commented Mar 25, 2022

This backport pull request has now been updated with issue and summary from the original commit.

@openjdk openjdk bot added the backport Port of a pull request already in a different code base label Mar 25, 2022
@jerboaa
Copy link
Contributor

jerboaa commented Mar 25, 2022

We do need the cleanup patch, because alibaba/dragonwell8#305 reports a crash due to use of UnrollLoopLimit, this flag is not supposed to be used by end users, it could be removed by cleanup patch. As I understand, the cleanup patch introduces another problem that can be fixed by JDK-8159715, so once cleanup backport is merged, I will backport JDK-8159715 as well.

So we have a work-around: Don't use -XX:+UnlockDiagnosticVMOptions -XX:-UnrollLimitCheck. We shouldn't take backporting non-critical fixes to JDK 8u lightly. This very much sounds like a jdk8u-fix-no candidate to me. Are you aware of this? https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-June/012002.html

@y1yang0
Copy link
Member Author

y1yang0 commented Apr 6, 2022

We do need the cleanup patch, because alibaba/dragonwell8#305 reports a crash due to use of UnrollLoopLimit, this flag is not supposed to be used by end users, it could be removed by cleanup patch. As I understand, the cleanup patch introduces another problem that can be fixed by JDK-8159715, so once cleanup backport is merged, I will backport JDK-8159715 as well.

So we have a work-around: Don't use -XX:+UnlockDiagnosticVMOptions -XX:-UnrollLimitCheck. We shouldn't take backporting non-critical fixes to JDK 8u lightly. This very much sounds like a jdk8u-fix-no candidate to me. Are you aware of this? https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-June/012002.html

Okay, I've read this guideline, it seems that the upstream mainline is not less willing to accept non-critical backports, I'm considering doing a backport in downstream.

@y1yang0 y1yang0 closed this Apr 6, 2022
@y1yang0 y1yang0 deleted the bp_8072422 branch April 6, 2022 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants