Skip to content

8259020: null-check of g1 write_ref_field_pre_entry is not necessary #1913

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

navyxliu
Copy link
Member

@navyxliu navyxliu commented Dec 31, 2020

orig is not null because G1BarrierSetC2 won't invoke write_ref_field_pre_entry
if pre_val is NULL.
/cc hotspot-gc


Progress

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

Issue

  • JDK-8259020: null-check of g1 write_ref_field_pre_entry is not necessary

Reviewers

Download

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

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 31, 2020

👋 Welcome back xliu! 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 rfr Pull request is ready for review hotspot-gc hotspot-gc-dev@openjdk.org labels Dec 31, 2020
@openjdk
Copy link

openjdk bot commented Dec 31, 2020

@navyxliu
The hotspot-gc label was successfully added.

@mlbridge
Copy link

mlbridge bot commented Dec 31, 2020

Webrevs

Copy link

@kimbarrett kimbarrett left a comment

Choose a reason for hiding this comment

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

Looks good.

@openjdk
Copy link

openjdk bot commented Jan 1, 2021

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

8259020: null-check of g1 write_ref_field_pre_entry is not necessary

Reviewed-by: kbarrett, ayang, phh

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 10 new commits pushed to the master branch:

  • e6f9926: 8257809: JNI warnings from Toolkit JPEG image decoding
  • 9d160aa: 8257815: Replace global log2 functions with efficient implementations
  • f80c63b: 8258490: Shenandoah: Full GC does not need to remark threads and drain SATB buffers
  • 7f04d23: 8258800: Deprecate -XX:+AlwaysLockClassLoader
  • d679caa: 8196466: javax/swing/JFileChooser/8062561/bug8062561.java fails
  • a2a3f4a: 8258924: javax/swing/JSplitPane/4201995/bug4201995.java fails in GTk L&F
  • f351e15: 8258382: Fix optimization-unstable code involving pointer overflow
  • 526c000: 8255729: com.sun.tools.javac.processing.JavacFiler.FilerOutputStream is inefficient
  • 497efef: 8225116: Test OwnedWindowsLeak.java intermittently fails
  • f5ee356: 8179503: Java should support GET OCSP calls

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 (@kimbarrett, @phohensee) 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 the ready Pull request is ready to be integrated label Jan 1, 2021
@navyxliu
Copy link
Member Author

navyxliu commented Jan 2, 2021

Regression tests is clear.
https://github.com/navyxliu/jdk/actions/runs/454177250

I can confirm it's safe for hotspot/c2 and I haven't found evidence that c1 generates call of write_ref_field_pre_entry.
on the other side, it is exported to external via JVMCIRuntime::write_barrier_pre. I am not familiar with jvmci. I guess it's used by graal compiler, but I don't understand it much. Can a graal expert tell me if it's safe on your site?

@navyxliu
Copy link
Member Author

navyxliu commented Jan 4, 2021

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 4, 2021
@openjdk
Copy link

openjdk bot commented Jan 4, 2021

@navyxliu
Your change (at version 99cbe6e) is now ready to be sponsored by a Committer.

@phohensee
Copy link
Member

/sponsor

@openjdk openjdk bot closed this Jan 4, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed sponsor Pull request is ready to be sponsored ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 4, 2021
@openjdk
Copy link

openjdk bot commented Jan 4, 2021

@phohensee @navyxliu Since your change was applied there have been 10 commits pushed to the master branch:

  • e6f9926: 8257809: JNI warnings from Toolkit JPEG image decoding
  • 9d160aa: 8257815: Replace global log2 functions with efficient implementations
  • f80c63b: 8258490: Shenandoah: Full GC does not need to remark threads and drain SATB buffers
  • 7f04d23: 8258800: Deprecate -XX:+AlwaysLockClassLoader
  • d679caa: 8196466: javax/swing/JFileChooser/8062561/bug8062561.java fails
  • a2a3f4a: 8258924: javax/swing/JSplitPane/4201995/bug4201995.java fails in GTk L&F
  • f351e15: 8258382: Fix optimization-unstable code involving pointer overflow
  • 526c000: 8255729: com.sun.tools.javac.processing.JavacFiler.FilerOutputStream is inefficient
  • 497efef: 8225116: Test OwnedWindowsLeak.java intermittently fails
  • f5ee356: 8179503: Java should support GET OCSP calls

Your commit was automatically rebased without conflicts.

Pushed as commit f0aae81.

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

@navyxliu
Copy link
Member Author

navyxliu commented Jan 5, 2021

Thank you all reviewers and @phohensee for sponsoring it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc hotspot-gc-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

5 participants