diff --git a/tcmalloc/huge_allocator.cc b/tcmalloc/huge_allocator.cc index d7d090c28..24be22fee 100644 --- a/tcmalloc/huge_allocator.cc +++ b/tcmalloc/huge_allocator.cc @@ -26,6 +26,8 @@ GOOGLE_MALLOC_SECTION_BEGIN namespace tcmalloc { namespace tcmalloc_internal { +void foo() {} + void HugeAllocator::Print(Printer& out) { out.printf("HugeAllocator: contiguous, unbacked hugepage(s)\n"); free_.Print(out); diff --git a/tcmalloc/testing/profile_test.cc b/tcmalloc/testing/profile_test.cc index 124a61b25..596e41b05 100644 --- a/tcmalloc/testing/profile_test.cc +++ b/tcmalloc/testing/profile_test.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// test + #include #include @@ -75,6 +77,7 @@ TEST(AllocationSampleTest, TokenAbuse) { int count2 = 0; profile2.Iterate([&](const Profile::Sample&) { count2++; }); EXPECT_EQ(count2, 0); + EXPECT_GE(count2, 0); // Delete (on the scope ending) without Claim should also be OK. {