Home
last modified time | relevance | path

Searched refs:first_allocated_bytes (Results 1 – 2 of 2) sorted by relevance

/system/core/libunwindstack/tests/
DTestUtils.cpp28 size_t first_allocated_bytes = 0; in TestCheckForLeaks() local
34 if (first_allocated_bytes == 0) { in TestCheckForLeaks()
35 first_allocated_bytes = allocated_bytes; in TestCheckForLeaks()
36 } else if (last_allocated_bytes > first_allocated_bytes) { in TestCheckForLeaks()
38 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, kMaxAllowedLeakBytes); in TestCheckForLeaks()
/system/core/libbacktrace/
Dbacktrace_test.cpp1846 size_t first_allocated_bytes = 0; in CheckForLeak() local
1856 if (first_allocated_bytes == 0) { in CheckForLeak()
1857 first_allocated_bytes = allocated_bytes; in CheckForLeak()
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()