Skip to content

Commit

Permalink
Support Shenandoah and ZGC (#4)
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`.

Upstream: bazelbuild#12644
  • Loading branch information
trustin authored Dec 8, 2020
1 parent e130ab0 commit c8bcce8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,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 c8bcce8

Please sign in to comment.