summaryrefslogtreecommitdiff
path: root/runtime/gc/heap_test.cc
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2023-03-17 17:59:05 +0000
committer Roland Levillain <rpl@google.com> 2023-03-27 10:18:58 +0000
commit6dc2655b1474d137f59dc92c00458f6440a59e03 (patch)
treedc8d09e72d962b6b2d8bf1174b15d82e26158804 /runtime/gc/heap_test.cc
parent4efc53d64dd5a04fcb9203bee756ae462c6da9f9 (diff)
Compute "scanned bytes" GC metrics in ART's CMC collector.
Test: ART_USE_READ_BARRIER=false \ m test-art-host-gtest-art_runtime_tests Bug: 270957146 Bug: 270391874 Change-Id: Ie64ed1c89774676af58a47caa7e697474bbeaaf4
Diffstat (limited to 'runtime/gc/heap_test.cc')
-rw-r--r--runtime/gc/heap_test.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc
index 5e64ae2192..b569241bdc 100644
--- a/runtime/gc/heap_test.cc
+++ b/runtime/gc/heap_test.cc
@@ -201,12 +201,8 @@ TEST_F(HeapTest, GCMetrics) {
EXPECT_FALSE(full_gc_tracing_throughput->IsNull());
EXPECT_FALSE(full_gc_throughput_avg->IsNull());
EXPECT_FALSE(full_gc_tracing_throughput_avg->IsNull());
- if (fg_collector_type != kCollectorTypeCMC) {
- // TODO(b/270957146): For some reason, these metrics are still null
- // after running the Concurrent Mark-Compact collector; investigate why.
- EXPECT_FALSE(full_gc_scanned_bytes->IsNull());
- EXPECT_FALSE(full_gc_scanned_bytes_delta->IsNull());
- }
+ EXPECT_FALSE(full_gc_scanned_bytes->IsNull());
+ EXPECT_FALSE(full_gc_scanned_bytes_delta->IsNull());
EXPECT_FALSE(full_gc_freed_bytes->IsNull());
EXPECT_FALSE(full_gc_freed_bytes_delta->IsNull());
EXPECT_FALSE(full_gc_duration->IsNull());