Skip to content

8252889: Obsolete -XX:+InsertMemBarAfterArraycopy #69

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

Closed
wants to merge 1 commit into from

Conversation

TobiHartmann
Copy link
Member

@TobiHartmann TobiHartmann commented Sep 8, 2020

The InsertMemBarAfterArraycopy product flag (enabled by default) is broken. I propose to simply remove it.
The corresponding CSR (JDK-8252890) is still waiting for approval.

Thanks,
Tobias


Progress

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

Issue

  • JDK-8252889: Obsolete -XX:+InsertMemBarAfterArraycopy

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/69/head:pull/69
$ git checkout pull/69

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 8, 2020

👋 Welcome back thartmann! 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 Sep 8, 2020
@openjdk
Copy link

openjdk bot commented Sep 8, 2020

@TobiHartmann The following label will be automatically applied to this pull request: hotspot.

When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label (add|remove) "label" command.

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Sep 8, 2020
@mlbridge
Copy link

mlbridge bot commented Sep 8, 2020

Webrevs

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

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

Synopsis might be changed to "Obsolete -XX:+InsertMemBarAfterArraycopy".

@TobiHartmann TobiHartmann changed the title 8252889: C2 crashes when disabling InsertMemBarAfterArraycopy 8252889: Obsolete -XX:+InsertMemBarAfterArraycopy Sep 8, 2020
@openjdk
Copy link

openjdk bot commented Sep 8, 2020

@TobiHartmann This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements

After integration, the commit message will be:

8252889: Obsolete -XX:+InsertMemBarAfterArraycopy

Reviewed-by: shade, adityam
  • If you would like to add a summary, use the /summary command.
  • To credit additional contributors, use the /contributor command.
  • To add additional solved issues, use the /issue command.

Since the source branch of this PR was last updated there have been 19 commits pushed to the master branch:

  • f933961: 8252980: comment only changes extracted from JDK-8247281
  • 4333942: 8250217: com.sun.tools.javac.api.JavacTaskImpl swallows compiler exceptions potentially producing false positive test results
  • 5166094: 8252957: Wrong comment in CgroupV1Subsystem::cpu_quota
  • 6329de4: 8248532: Every time I change keyboard language at my MacBook, Java crashes
  • d560964: 8252794: Creation of JNIMethodBlock should be done with a leaf lock
  • 5fef8dd: 8235229: Compilation against a modular, multi-release JAR erroneous with --release
  • 382b8fe: 8240751: Shenandoah: fold ShenandoahTracer definition
  • c98417e: 8250840: some tests use --enable-preview unnecessarily
  • c655b70: 8252916: Newline in object field values list of ScopeDesc should be removed
  • 30fa8d5: 8157729: examples in LinkedHashMap and LinkedHashSet class doc use raw types
  • ... and 9 more: https://git.openjdk.java.net/jdk/compare/73ba3ae1f5f5bfb0cc5cf9733ffa5c4a44508777...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge master into your branch, and then specify the current head hash when integrating, like this: /integrate f9339616e1c3ee01b3212b95fa017a0f52a07977.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 8, 2020
@TobiHartmann
Copy link
Member Author

Thanks for the review, Aleksey!

@mlbridge
Copy link

mlbridge bot commented Sep 8, 2020

Mailing list message from David Holmes on hotspot-dev:

Hi Aleksey,

On 8/09/2020 8:23 pm, Aleksey Shipilev wrote:

On Tue, 8 Sep 2020 10:04:35 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

The InsertMemBarAfterArraycopy product flag (enabled by default) is broken. I propose to simply remove it.
The corresponding CSR (JDK-8252890) is still waiting for approval.

Thanks,
Tobias

Synopsis might be changed to "Obsolete -XX:+InsertMemBarAfterArraycopy".

src/hotspot/share/runtime/arguments.cpp line 556:

554: { "UseSemaphoreGCThreadsSynchronization", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
555: { "ForceNUMA", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
556: { "InsertMemBarAfterArraycopy", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },

This seems like a product flag, so needs to follow `ForceNUMA` example? E.g. 16 -> 17 -> 18? And a provisional CSR?

Product flags can be directly obsoleted without being deprecated first
if they are basically non-functional, as this one seems to be.

Cheers,
David
-----

Copy link
Contributor

@adityamandaleeka adityamandaleeka left a comment

Choose a reason for hiding this comment

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

Not a reviewer, but this looks good to me.

@TobiHartmann
Copy link
Member Author

Thanks for the review!

@TobiHartmann
Copy link
Member Author

/integrate

@openjdk openjdk bot closed this Sep 10, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 10, 2020
@openjdk
Copy link

openjdk bot commented Sep 10, 2020

@TobiHartmann Since your change was applied there have been 19 commits pushed to the master branch:

  • f933961: 8252980: comment only changes extracted from JDK-8247281
  • 4333942: 8250217: com.sun.tools.javac.api.JavacTaskImpl swallows compiler exceptions potentially producing false positive test results
  • 5166094: 8252957: Wrong comment in CgroupV1Subsystem::cpu_quota
  • 6329de4: 8248532: Every time I change keyboard language at my MacBook, Java crashes
  • d560964: 8252794: Creation of JNIMethodBlock should be done with a leaf lock
  • 5fef8dd: 8235229: Compilation against a modular, multi-release JAR erroneous with --release
  • 382b8fe: 8240751: Shenandoah: fold ShenandoahTracer definition
  • c98417e: 8250840: some tests use --enable-preview unnecessarily
  • c655b70: 8252916: Newline in object field values list of ScopeDesc should be removed
  • 30fa8d5: 8157729: examples in LinkedHashMap and LinkedHashSet class doc use raw types
  • ... and 9 more: https://git.openjdk.java.net/jdk/compare/73ba3ae1f5f5bfb0cc5cf9733ffa5c4a44508777...master

Your commit was automatically rebased without conflicts.

Pushed as commit f78f780.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

nsjian pushed a commit to nsjian/jdk that referenced this pull request Nov 17, 2021
caojoshua pushed a commit to caojoshua/jdk that referenced this pull request Aug 17, 2023
Co-authored-by: Xin Liu <xxinliu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants