8226797: serviceability/tmtools/jstat/GcCapacityTest.java fails with Exception: java.lang.RuntimeException: OGCMN > OGCMX (min generation capacity > max generation capacity)

Reviewed-by: sjohanss, tschatzl
This commit is contained in:
Stefan Karlsson 2019-12-12 16:23:13 +01:00
parent 40bbdf472c
commit e6876a9cc3
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public:
GenerationSpec(Generation::Name name, size_t init_size, size_t max_size, size_t alignment) :
_name(name),
_init_size(align_up(init_size, alignment)),
_min_size(_init_size),
_max_size(align_up(max_size, alignment))
{ }

View File

@ -70,6 +70,7 @@ public class JstatGcCapacityResults extends JstatResults {
// Check Young Gen consistency
float NGCMN = getFloatValue("NGCMN");
assertThat(NGCMN >= 0, "NGCMN < 0 (min generation capacity is negative)");
float NGCMX = getFloatValue("NGCMX");
assertThat(NGCMX >= NGCMN, "NGCMN > NGCMX (min generation capacity > max generation capacity)");
@ -102,6 +103,7 @@ public class JstatGcCapacityResults extends JstatResults {
// Check Old Gen consistency
float OGCMN = getFloatValue("OGCMN");
assertThat(OGCMN >= 0, "OGCMN < 0 (min generation capacity is negative)");
float OGCMX = getFloatValue("OGCMX");
assertThat(OGCMX >= OGCMN, "OGCMN > OGCMX (min generation capacity > max generation capacity)");