• Home
  • Raw
  • Download

Lines Matching refs:sz

63 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) {  in AllocBlock()  argument
66 b->siz = sz; in AllocBlock()
78 uptr sz = RoundUpTo(b->siz, kMetaShadowCell); in FreeBlock() local
79 FreeRange(proc, p, sz); in FreeBlock()
80 return sz; in FreeBlock()
83 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { in FreeRange() argument
86 u32 *end = MemToMeta(p + sz); in FreeRange()
122 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz) { in ResetRange() argument
126 FreeRange(proc, p, sz); in ResetRange()
131 if (sz <= 4 * kPageSize) { in ResetRange()
133 FreeRange(proc, p, sz); in ResetRange()
141 sz -= diff; in ResetRange()
143 diff = p + sz - RoundDown(p + sz, kPageSize); in ResetRange()
145 FreeRange(proc, p + sz - diff, diff); in ResetRange()
146 sz -= diff; in ResetRange()
149 CHECK_GT(sz, 0); in ResetRange()
151 CHECK_EQ(sz, RoundUp(sz, kPageSize)); in ResetRange()
153 const uptr sz0 = sz; in ResetRange()
155 for (uptr checked = 0; sz > 0; checked += kPageSize) { in ResetRange()
158 sz -= kPageSize; in ResetRange()
163 for (uptr checked = 0; sz > 0; checked += kPageSize) { in ResetRange()
164 bool has_something = FreeRange(proc, p + sz - kPageSize, kPageSize); in ResetRange()
165 sz -= kPageSize; in ResetRange()
258 void MetaMap::MoveMemory(uptr src, uptr dst, uptr sz) { in MoveMemory() argument
262 CHECK_NE(sz, 0); in MoveMemory()
266 u32 *src_meta_end = MemToMeta(src + sz); in MoveMemory()
269 src_meta = MemToMeta(src + sz) - 1; in MoveMemory()
270 dst_meta = MemToMeta(dst + sz) - 1; in MoveMemory()