Home | History | Annotate | Download | only in src

Lines Matching defs:Region

57 // For each memory region, we keep track of (and provide to users)
58 // the stack trace that allocated that memory region.
133 // A memory region that we know about through malloc_hook-s.
136 struct Region {
137 uintptr_t start_addr; // region start address
138 uintptr_t end_addr; // region end address
142 bool is_stack; // does this region contain a thread's stack:
147 // of this region's allocation function,
157 // Return true iff this region overlaps region x.
158 bool Overlaps(const Region& x) const {
165 // The ways we create Region-s:
179 // The ways we modify Region-s:
197 // Post-default construction helper to make a Region suitable
205 // Note: call_stack[kMaxStackDepth] as a member lets us make Region
211 // substantially complicates memory management for the Region-s:
216 // Find the region that covers addr and write its data into *result if found,
218 // even when the underlying region gets removed from MemoryRegionMap.
220 static bool FindRegion(uintptr_t addr, Region* result);
222 // Find the region that contains stack_top, mark that region as
223 // a stack region, and write its data into *result if found,
225 // even when the underlying region gets removed from MemoryRegionMap.
227 static bool FindAndMarkStackRegion(uintptr_t stack_top, Region* result);
243 // Region comparator for sorting with STL
245 bool operator()(const Region& x, const Region& y) const {
261 typedef std::set<Region, RegionCmp,
262 STL_Allocator<Region, MyAllocator> > RegionSet;
266 // STL iterator with values of Region
273 // the loop iterator will still be valid as long as its region
349 // returns the region covering 'addr' or NULL; assumes our lock_ is held.
350 static const Region* DoFindRegionLocked(uintptr_t addr);
352 // Verifying wrapper around regions_->insert(region)
354 inline static void DoInsertRegionLocked(const Region& region);
358 void (*insert_func)(const Region& region));
369 inline static void InsertRegionLocked(const Region& region);
371 // Record addition of a memory region at address "start" of size "size"
374 // Record deletion of a memory region at address "start" of size "size"
378 // Record deletion of a memory region of size "size" in a bucket whose