mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2024-11-30 07:40:37 +00:00
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:
parent
40bbdf472c
commit
e6876a9cc3
@ -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))
|
||||
{ }
|
||||
|
||||
|
@ -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)");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user