Lines Matching defs:ph
12 static void CheckStats(const tcmalloc::PageHeap* ph,
16 tcmalloc::PageHeap::Stats stats = ph->stats();
23 tcmalloc::PageHeap* ph = new tcmalloc::PageHeap();
26 CheckStats(ph, 0, 0, 0);
29 tcmalloc::Span* s1 = ph->New(256);
30 CheckStats(ph, 256, 0, 0);
33 tcmalloc::Span* s2 = ph->Split(s1, 128);
35 ph->Delete(s2);
36 CheckStats(ph, 256, 128, 0);
39 EXPECT_EQ(s2_len, ph->ReleaseAtLeastNPages(1));
40 CheckStats(ph, 256, 0, 128);
43 ph->Delete(s1);
44 CheckStats(ph, 256, 128, 128);
46 delete ph;