Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tcmalloc/huge_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions tcmalloc/testing/profile_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// test

#include <stddef.h>

#include <algorithm>
Expand Down Expand Up @@ -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.
{
Expand Down
Loading