Skip to content

Commit

Permalink
Support Shenandoah and ZGC
Browse files Browse the repository at this point in the history
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`.

Closes bazelbuild#12644.

PiperOrigin-RevId: 346318813
  • Loading branch information
trustin authored and copybara-github committed Dec 8, 2020
1 parent 52457b1 commit f23aa21
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ private static boolean isTenuredSpace(String name) {
return "CMS Old Gen".equals(name)
|| "G1 Old Gen".equals(name)
|| "PS Old Gen".equals(name)
|| "Tenured Gen".equals(name);
|| "Tenured Gen".equals(name)
|| "Shenandoah".equals(name)
|| "ZHeap".equals(name);
}
}

0 comments on commit f23aa21

Please sign in to comment.