summaryrefslogtreecommitdiff
path: root/runtime/gc/heap_test.cc
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-01-23 16:01:44 -0800
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-01-23 16:01:44 -0800
commit35f3a8a1c34cb233fee43885cf4626dfb45f6bbe (patch)
tree8ebf0b5e4c8471f832bb4b1061574607baa81364 /runtime/gc/heap_test.cc
parentaa717c9dce95d4353e20b21aa0225d4fd8238a6f (diff)
parent98645abb2142fdb6dda39384b6764b89d09a7625 (diff)
Snap for 12962709 from 98645abb2142fdb6dda39384b6764b89d09a7625 to 25Q2-release
Change-Id: Ic3f7c0489bb4d5c52f48349e87b01521bd56c396
Diffstat (limited to 'runtime/gc/heap_test.cc')
-rw-r--r--runtime/gc/heap_test.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc
index 18e91da75d..74d2970c0d 100644
--- a/runtime/gc/heap_test.cc
+++ b/runtime/gc/heap_test.cc
@@ -190,7 +190,7 @@ TEST_F(HeapTest, GCMetrics) {
// young-generation collections) is null (b/271112044). Temporarily
// suspend the following checks while we investigate.
//
- // TODO(b/271112044): Investigate and adjust these expectations and/or the
+ // TODO(b/271990567): Investigate and adjust these expectations and/or the
// corresponding metric logic.
#if 0
EXPECT_PRED2(AnyIsFalse, full_gc_duration->IsNull(), young_gc_duration->IsNull());
@@ -209,8 +209,15 @@ TEST_F(HeapTest, GCMetrics) {
EXPECT_FALSE(full_gc_scanned_bytes_delta->IsNull());
EXPECT_FALSE(full_gc_freed_bytes->IsNull());
EXPECT_FALSE(full_gc_freed_bytes_delta->IsNull());
+ // Like the generational case, these GC duration can be less than a
+ // millisecond here as well (b/391531096). Temporarily disabling the
+ // tests.
+ // TODO(b/271990567): Possibly make the GCs above more time consuming to
+ // avoid the situation.
+#if 0
EXPECT_FALSE(full_gc_duration->IsNull());
EXPECT_FALSE(full_gc_duration_delta->IsNull());
+#endif
EXPECT_TRUE(young_gc_collection_time->IsNull());
EXPECT_TRUE(young_gc_count->IsNull());