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

8330670: Obsolete ScavengeBeforeFullGC #18861

Closed
wants to merge 1 commit into from

Conversation

albertnetymk
Copy link
Member

@albertnetymk albertnetymk commented Apr 19, 2024

Obsolete a gc product flag.

Test: tier1-3


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change requires CSR request JDK-8330671 to be approved

Issues

  • JDK-8330670: Obsolete ScavengeBeforeFullGC (Enhancement - P4)
  • JDK-8330671: Obsolete ScavengeBeforeFullGC (CSR)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18861/head:pull/18861
$ git checkout pull/18861

Update a local copy of the PR:
$ git checkout pull/18861
$ git pull https://git.openjdk.org/jdk.git pull/18861/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 18861

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18861.diff

Webrev

Link to Webrev Comment

@albertnetymk
Copy link
Member Author

/label add hotspot-gc

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 19, 2024

👋 Welcome back ayang! 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
Copy link

openjdk bot commented Apr 19, 2024

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

8330670: Obsolete ScavengeBeforeFullGC

Reviewed-by: stefank, tschatzl

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

  • f60798a: 8329222: java.text.NumberFormat (and subclasses) spec updates
  • 2555166: 8329113: Deprecate -XX:+UseNotificationThread
  • 09b8809: 8327289: Remove unused PrintMethodFlushingStatistics option
  • 9cc163a: 8330178: Clean up non-standard use of /** comments in java.base
  • 88a5dce: 8330805: ARM32 build is broken after JDK-8139457
  • 7157eea: 8327290: Remove unused notproduct option TraceInvocationCounterOverflow
  • b4cea70: 8330693: Generational ZGC: Simplify ZAddress::finalizable_good and ZAddress::mark_good
  • 412e306: 8329593: Drop adjustments to target parallelism when virtual threads do I/O on files opened for buffered I/O
  • b07e153: 8330362: G1: Inline offset array element accessor in G1BlockOffsetTable
  • b6518a5: 8329417: Remove objects with no pointers from relocation bitmap
  • ... and 43 more: https://git.openjdk.org/jdk/compare/177092b952c2135c6f6872c6b64d1e210452d35a...master

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.

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

@openjdk openjdk bot changed the title 8330670 8330670: Obsolete ScavengeBeforeFullGC Apr 19, 2024
@openjdk openjdk bot added csr Pull request needs approved CSR before integration rfr Pull request is ready for review hotspot-gc hotspot-gc-dev@openjdk.org labels Apr 19, 2024
@openjdk
Copy link

openjdk bot commented Apr 19, 2024

@albertnetymk
The hotspot-gc label was successfully added.

@mlbridge
Copy link

mlbridge bot commented Apr 19, 2024

Webrevs

@@ -310,8 +310,7 @@ static bool should_preclean_young(GCCause::Cause cause) {
// catch that above and perform young gen pre-cleaning.
assert(!should_clear_soft_references(cause), "Clearing soft references without pre-cleaning young gen");

// Preclean young if implied by configuration
return ScavengeBeforeFullGC;
return false;
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if this is correct. We previously returned true here if the user didn't set ScavengeBeforeFullGC, right? Maybe we need a ZGC-specific flag to allow this "precleaning" to be turned off?

Copy link
Member Author

Choose a reason for hiding this comment

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

ScavengeBeforeFullGC is true by default only for Parallel.

  if (!UseParallelGC && FLAG_IS_DEFAULT(ScavengeBeforeFullGC)) {
    FLAG_SET_DEFAULT(ScavengeBeforeFullGC, false);
  }

Copy link
Member

Choose a reason for hiding this comment

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

Ahh, I missed that. Nowadays we typically put that kind of code in the GC-specific places and not in the shared code.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed csr Pull request needs approved CSR before integration labels Apr 23, 2024
@albertnetymk
Copy link
Member Author

Thanks for review.

/integrate

@openjdk
Copy link

openjdk bot commented Apr 24, 2024

Going to push as commit 7bb59dc.
Since your change was applied there have been 62 commits pushed to the master branch:

  • 174d626: 8328741: serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java failed with unexpected owner
  • e681e9b: 8330819: C2 SuperWord: bad dominance after pre-loop limit adjustment with base that has CastLL after pre-loop
  • c439c8c: 8323429: Missing C2 optimization for FP min/max when both inputs are same
  • 165ba87: 8330587: IGV: remove ControlFlowTopComponent
  • 3ccb64c: 8318446: C2: optimize stores into primitive arrays by combining values into larger store
  • 5c38386: 8326541: [AArch64] ZGC C2 load barrier stub should consider the length of live registers when spilling registers
  • 438e643: 8329531: compiler/c2/irTests/TestIfMinMax.java fails with IRViolationException: There were one or multiple IR rule failures.
  • 80b381e: 8329555: Crash in intrinsifying heap-based MemorySegment Vector store/loads
  • 7a89555: 8330844: Add aliases for conditional jumps and additional instruction forms for x86
  • f60798a: 8329222: java.text.NumberFormat (and subclasses) spec updates
  • ... and 52 more: https://git.openjdk.org/jdk/compare/177092b952c2135c6f6872c6b64d1e210452d35a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 24, 2024
@openjdk openjdk bot closed this Apr 24, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 24, 2024
@openjdk
Copy link

openjdk bot commented Apr 24, 2024

@albertnetymk Pushed as commit 7bb59dc.

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

@albertnetymk albertnetymk deleted the remove-jvm-flag branch April 24, 2024 09:45
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.

3 participants