Skip to content

8304015: G1: Metaspace-induced GCs should not trigger maximal compaction#12987

Closed
walulyai wants to merge 2 commits intoopenjdk:masterfrom
walulyai:do_maximal_compaction
Closed

8304015: G1: Metaspace-induced GCs should not trigger maximal compaction#12987
walulyai wants to merge 2 commits intoopenjdk:masterfrom
walulyai:do_maximal_compaction

Conversation

@walulyai
Copy link
Member

@walulyai walulyai commented Mar 11, 2023

Hi all,

Please review this small cleanup to remove triggering maximal compaction on Metaspace-induced full-GCs.

Testing: Tier1.


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

Issue

  • JDK-8304015: G1: Metaspace-induced GCs should not trigger maximal compaction

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 12987

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 11, 2023

👋 Welcome back iwalulya! 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 11, 2023
@openjdk
Copy link

openjdk bot commented Mar 11, 2023

@walulyai The following label will be automatically applied to this pull request:

  • hotspot-gc

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 pull request command.

@openjdk openjdk bot added the hotspot-gc hotspot-gc-dev@openjdk.org label Mar 11, 2023
@mlbridge
Copy link

mlbridge bot commented Mar 11, 2023

Webrevs

Copy link
Member

@albertnetymk albertnetymk left a comment

Choose a reason for hiding this comment

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

I think it's better to keep the var so that the semantic of the literal boolean is clear in this context.

(Slightly off the PR -- it's not obvious that metaspace related GC enters this path. Why isn't the decision on what GC cycle (young/old/clear-soft-or-not) to trigger made inside GC code?)

@openjdk
Copy link

openjdk bot commented Mar 13, 2023

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

8304015: G1: Metaspace-induced GCs should not trigger maximal compaction

Reviewed-by: ayang, 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 55 new commits pushed to the master branch:

  • f835aaa: 8300727: java/awt/List/ListGarbageCollectionTest/AwtListGarbageCollectionTest.java failed with "List wasn't garbage collected"
  • 466ffeb: 8303965: java.net.http.HttpClient should reset the stream if response headers contain malformed header fields
  • 431e702: 8303213: Avoid AtomicReference in TextComponentPrintable
  • 4cf4c59: 8303824: Parallel: Use more strict card table API
  • 8e41bf2: 8303238: Create generalizations for existing LShift ideal transforms
  • 805a4e6: 8303883: Confusing parameter name in G1UpdateRemSetTrackingBeforeRebuild::distribute_marked_bytes
  • 25e7ac2: 8294966: Convert jdk.jartool/sun.tools.jar.FingerPrint to use the ClassFile API to parse JAR entries
  • 3018b47: 8303969: Limit printed failures within an object during G1 heap verification
  • b575e54: 8303963: Replace various encodings of UINT/SIZE_MAX in gc code
  • c183fce: 8300926: Several startup regressions ~6-70% in 21-b6 all platforms
  • ... and 45 more: https://git.openjdk.org/jdk/compare/713def0bf25c3488afb72e453f3b7cd09a909599...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 added the ready Pull request is ready to be integrated label Mar 13, 2023
@walulyai
Copy link
Member Author

I think it's better to keep the var so that the semantic of the literal boolean is clear in this context.

Decided to go with using the comment /* do_maximal_compation */ as done in many other cases where we want to be clear but also avoid declaring variables.

(Slightly off the PR -- it's not obvious that metaspace related GC enters this path. Why isn't the decision on what GC cycle (young/old/clear-soft-or-not) to trigger made inside GC code?)

I think this is a design issue that we need to discuss along with other concerns around call paths to full-gc.

@walulyai
Copy link
Member Author

Thanks @albertnetymk and @tschatzl for the reviews!

/integrate

@openjdk
Copy link

openjdk bot commented Mar 14, 2023

Going to push as commit 0cc0f06.
Since your change was applied there have been 65 commits pushed to the master branch:

  • 43eca1d: 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests
  • b6d70f2: 8303973: Library detection in runtime/ErrorHandling/TestDwarf.java fails on ppc64le RHEL8.5 for libpthread-2.28.so
  • 2bb990e: 8301244: Tidy up compiler specific warnings files
  • c073ef2: 8303482: Update LCMS to 2.15
  • 49181b8: 8303955: RISC-V: Factor out the tmp parameter from copy_memory and copy_memory_v
  • 7bbc5e0: 8300517: Refactor VisibleMemberTable (method members)
  • a8f662e: 8303908: Add missing check in VTMS_transition_disable_for_all() for suspend mode
  • 5685107: 8302491: NoClassDefFoundError omits the original cause of an error
  • 671a452: 8303606: Memory leaks in Arguments::parse_each_vm_init_arg
  • a95bc7a: 8294974: Convert jdk.jshell/jdk.jshell.execution.LocalExecutionControl to use the Classfile API to instrument classes
  • ... and 55 more: https://git.openjdk.org/jdk/compare/713def0bf25c3488afb72e453f3b7cd09a909599...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Mar 14, 2023

@walulyai Pushed as commit 0cc0f06.

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

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