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

8292847: Zero: Allow ergonomics to select the GC #9994

Closed
wants to merge 2 commits into from

Conversation

shipilev
Copy link
Member

@shipilev shipilev commented Aug 24, 2022

Zero is currently defaulting to Serial GC on all machines, due to the fact that NeverActAsServerClassMachine is true. It is set in compiler_globals.pd under #if !defined(COMPILER1) && !defined(COMPILER2) && !INCLUDE_JVMCI. NeverActAsServerClassMachine mostly affects compiler ergonomics, which Zero does not need, but it also affects the selection of default GC.

After JDK-8256497, we can let Zero default to G1. After JDK-8292329, it would help Zero to use the CDS shared heap.

Additional testing:

  • Linux x86_64 Zero fastdebug, make bootcycle-images
  • Linux x86_64 Zero fastdebug, tier1 tests (many known failures)

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

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9994

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 24, 2022

👋 Welcome back shade! 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 Aug 24, 2022
@openjdk
Copy link

openjdk bot commented Aug 24, 2022

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

  • hotspot-runtime

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-runtime hotspot-runtime-dev@openjdk.org label Aug 24, 2022
@mlbridge
Copy link

mlbridge bot commented Aug 24, 2022

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 21, 2022

@shipilev This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@shipilev
Copy link
Member Author

Anyone? :)

@openjdk
Copy link

openjdk bot commented Sep 22, 2022

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

8292847: Zero: Allow ergonomics to select the GC

Reviewed-by: tschatzl, stuefe

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

  • 5285035: 8294075: gtest/AsyncLogGtest crashes with SEGV
  • 696287d: 8294037: Using alias template to unify hashtables in AsyncLogWriter
  • 48cc156: 8293331: Refactor FileDispatcherImpl into operating system-specific components
  • f751e60: 8294197: Zero: JVM_handle_linux_signal should not assume deopt NOPs
  • 4a6060b: 8294190: Incorrect check messages in SharedRuntime::generate_uncommon_trap_blob
  • 0be2b2c: 8292756: java.lang.AssertionError at at jdk.compiler/com.sun.tools.javac.code.Scope$ScopeImpl.leave(Scope.java:386)
  • bc2af47: 8254711: Add java.security.Provider.getService JFR Event
  • d781ab0: 8294003: Don't handle si_addr == 0 && si_code == SI_KERNEL SIGSEGVs
  • a216960: 8294087: RISC-V: RVC: Fix a potential alignment issue and add more alignment assertions for the patchable calls/nops
  • 3fa6778: 8292296: Use multiple threads to process ParallelGC deferred updates
  • ... and 381 more: https://git.openjdk.org/jdk/compare/79597f1ea6844f374beeeba219719cd9d5fe7d03...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 Sep 22, 2022
Copy link
Member

@tstuefe tstuefe left a comment

Choose a reason for hiding this comment

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

This seems fine.

Just wondered whether one could change the definition in compiler_globals_pd.hpp in the #if !defined(COMPILER1) && !defined(COMPILER2) && !INCLUDE_JVMCI section to the same effect.

@shipilev
Copy link
Member Author

Just wondered whether one could change the definition in compiler_globals_pd.hpp in the #if !defined(COMPILER1) && !defined(COMPILER2) && !INCLUDE_JVMCI section to the same effect.

I prefer not to mess with these, because they are part of server/client/etc VM selection ergonomics.

@shipilev
Copy link
Member Author

shipilev commented Oct 4, 2022

/integrate

@openjdk
Copy link

openjdk bot commented Oct 4, 2022

Going to push as commit 3b476a1.
Since your change was applied there have been 517 commits pushed to the master branch:

  • 16047e8: 8292780: misc tests failed "assert(false) failed: graph should be schedulable"
  • bf39b18: 8288302: Shenandoah: SIGSEGV in vm maybe related to jit compiling xerces
  • f957ce9: 8294564: IGV: IllegalArgumentException for "Difference to current graph"
  • ae79af2: 8294740: Add cgroups keyword to TestDockerBasic.java
  • 07ed68e: 8288907: serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java fails with -XX:TieredStopAtLevel=2,3
  • 090cdfc: 8294726: Update URLs in minefield tests
  • ed40d88: 8276849: Refresh the window icon on graphics configuration changes
  • 081691a: 8294593: Check the size of the target on invocations of BigInteger::isProbablePrime
  • a4f2078: 8294437: java/nio/channels/FileChannel tests slow on Windows
  • c6e3daa: 8242115: C2 SATB barriers are not safepoint-safe
  • ... and 507 more: https://git.openjdk.org/jdk/compare/79597f1ea6844f374beeeba219719cd9d5fe7d03...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Oct 4, 2022

@shipilev Pushed as commit 3b476a1.

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

@shipilev shipilev deleted the JDK-8292847-zero-selectgc branch October 21, 2022 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants