提交 69662ade 编写于 作者: T tschatzl

8052170: G1 asserts at collection exit with -XX:-G1DeferredRSUpdate

Summary: Do not try to verify timing measures for the redirty logged cards phase when it is not executed.
Reviewed-by: brutisso, jmasa
上级 300112e6
...@@ -236,8 +236,10 @@ void G1GCPhaseTimes::note_gc_end() { ...@@ -236,8 +236,10 @@ void G1GCPhaseTimes::note_gc_end() {
_last_gc_worker_times_ms.verify(); _last_gc_worker_times_ms.verify();
_last_gc_worker_other_times_ms.verify(); _last_gc_worker_other_times_ms.verify();
_last_redirty_logged_cards_time_ms.verify(); if (G1DeferredRSUpdate) {
_last_redirty_logged_cards_processed_cards.verify(); _last_redirty_logged_cards_time_ms.verify();
_last_redirty_logged_cards_processed_cards.verify();
}
} }
void G1GCPhaseTimes::note_string_dedup_fixup_start() { void G1GCPhaseTimes::note_string_dedup_fixup_start() {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test TestDeferredRSUpdate * @test TestDeferredRSUpdate
* @bug 8040977 * @bug 8040977 8052170
* @summary Ensure that running with -XX:-G1DeferredRSUpdate does not crash the VM * @summary Ensure that running with -XX:-G1DeferredRSUpdate does not crash the VM
* @key gc * @key gc
* @library /testlibrary * @library /testlibrary
...@@ -38,6 +38,7 @@ public class TestDeferredRSUpdate { ...@@ -38,6 +38,7 @@ public class TestDeferredRSUpdate {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
"-Xmx10M", "-Xmx10M",
"-XX:+PrintGCDetails",
// G1DeferredRSUpdate is a develop option, but we cannot limit execution of this test to only debug VMs. // G1DeferredRSUpdate is a develop option, but we cannot limit execution of this test to only debug VMs.
"-XX:+IgnoreUnrecognizedVMOptions", "-XX:+IgnoreUnrecognizedVMOptions",
"-XX:-G1DeferredRSUpdate", "-XX:-G1DeferredRSUpdate",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册