[8.4.0] Support generational ZGC and generational Shenandoah#26684
Merged
iancha1992 merged 1 commit intobazelbuild:release-8.4.0from Aug 4, 2025
Merged
[8.4.0] Support generational ZGC and generational Shenandoah#26684iancha1992 merged 1 commit intobazelbuild:release-8.4.0from
iancha1992 merged 1 commit intobazelbuild:release-8.4.0from
Conversation
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
meisterT
approved these changes
Aug 4, 2025
CyrusNajmabadi
pushed a commit
to CyrusNajmabadi/bazel
that referenced
this pull request
Feb 11, 2026
JDK 21+ introduces generational ZGC ("ZGC Old Generation") and
generational Shenandoah ("Shenandoah Old Gen"). Bazel's
isTenuredSpace() only knew the older pool names ("ZHeap",
"Shenandoah"), causing MemoryPressureModule to crash on startup
when using these collectors.
This is a backport of the upstream fix:
- Issue: bazelbuild#26676
- PR: bazelbuild#26684
- Commit: bazelbuild@3a1fe64
Co-authored-by: Cursor <[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 does not start when you launch the server JVM with generational ZGC using
-XX:+UseZGCand-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:+UseShenandoahGCand-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