Support Shenandoah and ZGC#12644
Closed
trustin wants to merge 2 commits intobazelbuild:masterfrom
trustin:patch-1
Closed
Support Shenandoah and ZGC#12644trustin wants to merge 2 commits intobazelbuild:masterfrom trustin:patch-1
trustin wants to merge 2 commits intobazelbuild:masterfrom
trustin:patch-1
Conversation
Bazel currently refuses to start up when JVM is launched with `-XX:+UseShenandoahGC`. This can be easily fixed by making `RetainedHeapLimiter` recognize the memory pool name `Shenandoah`.
meisterT
approved these changes
Dec 8, 2020
apattidb
pushed a commit
to databricks/bazel
that referenced
this pull request
Dec 8, 2020
Bazel currently refuses to start up when JVM is launched with `-XX:+UseShenandoahGC` or `-XX:+UseZGC`. This can be easily fixed by making `RetainedHeapLimiter` recognize the memory pool name `Shenandoah` and `ZHeap`. Upstream: bazelbuild#12644
jjudd
added a commit
to lucidsoftware/bazel
that referenced
this pull request
Aug 1, 2025
Bazel currently does not start when you launch the server JVM with generational ZGC using -XX:+UseZGC and -XX:+ZGenerational. Or if you're on JDK 24+ the same problem is encountered with just -XX:+UseZGC. The same problem is encountered with -XX:+UseShenandoahGC and -XX:ShenandoahGCMode=generational. Non-generational ZGC is removed as of JDK 24. Generational Shenandoah is being promoted from experimental to production in JDK 25. This fix is modeled after bazelbuild#12644
jjudd
added a commit
to lucidsoftware/bazel
that referenced
this pull request
Aug 1, 2025
Bazel currently does not start when you launch the server JVM with generational ZGC using -XX:+UseZGC and -XX:+ZGenerational. Or if you're on JDK 24+ the same problem is encountered with just -XX:+UseZGC. The same problem is encountered with -XX:+UseShenandoahGC and -XX:ShenandoahGCMode=generational. Non-generational ZGC is removed as of JDK 24. Generational Shenandoah is being promoted from experimental to production in JDK 25. This fix is modeled after bazelbuild#12644
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 1, 2025
Bazel currently does not start when you launch the server JVM with generational ZGC using `-XX:+UseZGC` and `-XX:+ZGenerational`. Or if you're on JDK 24+ the same problem is encountered with just `-XX:+UseZGC`. The same problem is encountered with `-XX:+UseShenandoahGC` and `-XX:ShenandoahGCMode=generational`. Non-generational ZGC is removed as of JDK 24. Generational Shenandoah is being promoted from experimental to production in JDK 25. This fix is modeled after #12644 Closes #26676. PiperOrigin-RevId: 789746919 Change-Id: Ia070fa9b39cef07cc9987544c014d589b2504dce
bazel-io
pushed a commit
to bazel-io/bazel
that referenced
this pull request
Aug 1, 2025
Bazel currently does not start when you launch the server JVM with generational ZGC using `-XX:+UseZGC` and `-XX:+ZGenerational`. Or if you're on JDK 24+ the same problem is encountered with just `-XX:+UseZGC`. The same problem is encountered with `-XX:+UseShenandoahGC` and `-XX:ShenandoahGCMode=generational`. Non-generational ZGC is removed as of JDK 24. Generational Shenandoah is being promoted from experimental to production in JDK 25. This fix is modeled after bazelbuild#12644 Closes bazelbuild#26676. PiperOrigin-RevId: 789746919 Change-Id: Ia070fa9b39cef07cc9987544c014d589b2504dce
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Aug 4, 2025
Bazel currently does not start when you launch the server JVM with generational ZGC using `-XX:+UseZGC` and `-XX:+ZGenerational`. Or if you're on JDK 24+ the same problem is encountered with just `-XX:+UseZGC`. The same problem is encountered with `-XX:+UseShenandoahGC` and `-XX:ShenandoahGCMode=generational`. Non-generational ZGC is removed as of JDK 24. Generational Shenandoah is being promoted from experimental to production in JDK 25. This fix is modeled after #12644 Closes #26676. PiperOrigin-RevId: 789746919 Change-Id: Ia070fa9b39cef07cc9987544c014d589b2504dce Commit 3a1fe64 Co-authored-by: James Judd <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bazel currently refuses to start up when JVM is launched with
-XX:+UseShenandoahGCor-XX:+UseZGC. This can be easily fixed by makingRetainedHeapLimiterrecognize thememory pool name
ShenandoahandZHeap.