Home
last modified time | relevance | path

Searched refs:last_allocated_bytes (Results 1 – 3 of 3) sorted by relevance

/system/core/libunwindstack/tests/
DTestUtils.cpp29 size_t last_allocated_bytes = 0; in TestCheckForLeaks() local
36 } else if (last_allocated_bytes > first_allocated_bytes) { in TestCheckForLeaks()
38 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, kMaxAllowedLeakBytes); in TestCheckForLeaks()
40 last_allocated_bytes = allocated_bytes; in TestCheckForLeaks()
DDexFileTest.cpp80 static void CheckForLeak(size_t loop, size_t* first_allocated_bytes, size_t* last_allocated_bytes) { in CheckForLeak() argument
84 } else if (*last_allocated_bytes > *first_allocated_bytes) { in CheckForLeak()
86 ASSERT_LE(*last_allocated_bytes - *first_allocated_bytes, kMaxAllowedLeakBytes) in CheckForLeak()
88 << " last_allocated_bytes " << *last_allocated_bytes; in CheckForLeak()
90 *last_allocated_bytes = allocated_bytes; in CheckForLeak()
101 size_t last_allocated_bytes = 0; in TEST() local
104 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()
138 size_t last_allocated_bytes = 0; in TEST() local
141 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()
/system/core/libbacktrace/
Dbacktrace_test.cpp1847 size_t last_allocated_bytes = 0; in CheckForLeak() local
1858 } else if (last_allocated_bytes > first_allocated_bytes) { in CheckForLeak()
1860 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, MAX_LEAK_BYTES); in CheckForLeak()
1862 last_allocated_bytes = allocated_bytes; in CheckForLeak()