8340988: Update jdk/jfr/event/gc/collection tests to accept "CodeCache GC Threshold" as valid GC reason

Reviewed-by: tschatzl
This commit is contained in:
Leonid Mesnik 2024-10-01 16:02:02 +00:00
parent f2a767f59b
commit 9a7817b137
4 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ public class TestGCCauseWithG1ConcurrentMark {
String[] vmFlags = {"-XX:+UseG1GC", "-XX:+ExplicitGCInvokesConcurrent"};
String[] gcNames = {GCHelper.gcG1New, GCHelper.gcG1Old, GCHelper.gcG1Full};
String[] gcCauses = {"Metadata GC Threshold", "G1 Evacuation Pause", "G1 Preventive Collection",
"G1 Compaction Pause", "System.gc()"};
"G1 Compaction Pause", "CodeCache GC Threshold", "System.gc()"};
GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ public class TestGCCauseWithG1FullCollection {
String[] vmFlags = {"-XX:+UseG1GC"};
String[] gcNames = {GCHelper.gcG1New, GCHelper.gcG1Old, GCHelper.gcG1Full};
String[] gcCauses = {"Metadata GC Threshold", "G1 Evacuation Pause", "G1 Preventive Collection",
"G1 Compaction Pause", "System.gc()"};
"G1 Compaction Pause", "CodeCache GC Threshold", "System.gc()"};
GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -39,7 +39,8 @@ public class TestGCCauseWithParallelOld {
String testID = "ParallelOld";
String[] vmFlags = {"-XX:+UseParallelGC"};
String[] gcNames = {GCHelper.gcParallelScavenge, GCHelper.gcParallelOld};
String[] gcCauses = {"Allocation Failure", "System.gc()", "GCLocker Initiated GC"};
String[] gcCauses = {"Allocation Failure", "System.gc()", "GCLocker Initiated GC",
"CodeCache GC Threshold"};
GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -39,7 +39,8 @@ public class TestGCCauseWithSerial {
String testID = "Serial";
String[] vmFlags = {"-XX:+UseSerialGC"};
String[] gcNames = {GCHelper.gcDefNew, GCHelper.gcSerialOld};
String[] gcCauses = {"Allocation Failure", "System.gc()", "GCLocker Initiated GC"};
String[] gcCauses = {"Allocation Failure", "System.gc()", "GCLocker Initiated GC",
"CodeCache GC Threshold"};
GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses);
}
}