|
1 | 1 | /* |
2 | | - * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -68,19 +68,21 @@ public static OutputAnalyzer runWithoutG1ClassUnloading() throws Exception { |
68 | 68 | } |
69 | 69 |
|
70 | 70 | public static void testWithoutG1ClassUnloading() throws Exception { |
71 | | - // -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC instead of a concurrent cycle. |
| 71 | + // -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC due to Metadata GC Threshold |
| 72 | + // instead of a concurrent cycle. |
72 | 73 | OutputAnalyzer out = runWithoutG1ClassUnloading(); |
73 | 74 |
|
74 | | - out.shouldMatch(".*Pause Full.*"); |
75 | | - out.shouldNotMatch(".*Pause Young \\(Concurrent Start\\).*"); |
| 75 | + out.shouldMatch(".*Pause Full \\(Metadata GC Threshold\\).*"); |
| 76 | + out.shouldNotMatch(".*Pause Young \\(Concurrent Start\\) \\(Metadata GC Threshold\\).*"); |
76 | 77 | } |
77 | 78 |
|
78 | 79 | public static void testWithG1ClassUnloading() throws Exception { |
79 | | - // -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle instead of a full GC. |
| 80 | + // -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle due to Metadata GC Threshold |
| 81 | + // instead of a full GC. |
80 | 82 | OutputAnalyzer out = runWithG1ClassUnloading(); |
81 | 83 |
|
82 | | - out.shouldMatch(".*Pause Young \\(Concurrent Start\\).*"); |
83 | | - out.shouldNotMatch(".*Pause Full.*"); |
| 84 | + out.shouldMatch(".*Pause Young \\(Concurrent Start\\) \\(Metadata GC Threshold\\).*"); |
| 85 | + out.shouldNotMatch(".*Pause Full \\(Metadata GC Threshold\\).*"); |
84 | 86 | } |
85 | 87 |
|
86 | 88 | public static void main(String args[]) throws Exception { |
|
0 commit comments