Home | History | Annotate | Download | only in src

Lines Matching defs:Region

56 // For each memory region, we keep track of (and provide to users)
57 // the stack trace that allocated that memory region.
121 // A memory region that we know about through malloc_hook-s.
124 struct Region {
125 uintptr_t start_addr; // region start address
126 uintptr_t end_addr; // region end address
130 bool is_stack; // does this region contain a thread's stack:
135 // of this region's allocation function,
145 // Return true iff this region overlaps region x.
146 bool Overlaps(const Region& x) const {
153 // The ways we create Region-s:
167 // The ways we modify Region-s:
185 // Post-default construction helper to make a Region suitable
193 // Note: call_stack[kMaxStackDepth] as a member lets us make Region
199 // substantially complicates memory management for the Region-s:
204 // Find the region that covers addr and write its data into *result if found,
206 // even when the underlying region gets removed from MemoryRegionMap.
208 static bool FindRegion(uintptr_t addr, Region* result);
210 // Find the region that contains stack_top, mark that region as
211 // a stack region, and write its data into *result if found,
213 // even when the underlying region gets removed from MemoryRegionMap.
215 static bool FindAndMarkStackRegion(uintptr_t stack_top, Region* result);
219 // Region comparator for sorting with STL
221 bool operator()(const Region& x, const Region& y) const {
237 typedef std::set<Region, RegionCmp,
238 STL_Allocator<Region, MyAllocator> > RegionSet;
242 // STL iterator with values of Region
249 // the loop iterator will still be valid as long as its region
301 // returns the region covering 'addr' or NULL; assumes our lock_ is held.
302 static const Region* DoFindRegionLocked(uintptr_t addr);
304 // Verifying wrapper around regions_->insert(region)
306 inline static void DoInsertRegionLocked(const Region& region);
310 void (*insert_func)(const Region& region));
313 inline static void InsertRegionLocked(const Region& region);
315 // Record addition of a memory region at address "start" of size "size"
318 // Record deletion of a memory region at address "start" of size "size"