* Save a mapping into the set. */
| 273 | * Save a mapping into the set. |
| 274 | */ |
| 275 | static void saveMapping(Mapping *mapping, MappingSet &mappings) |
| 276 | { |
| 277 | if (mapping == nullptr) |
| 278 | return; |
| 279 | Bounds b = calculateBounds(mapping); |
| 280 | mapping->lb = b.lb; |
| 281 | mapping->ub = b.ub; |
| 282 | mapping->prot = calculateProtections(mapping); |
| 283 | mapping->preload = calculatePreload(mapping); |
| 284 | insertMapping(mapping, mappings); |
| 285 | stat_num_virtual_mappings++; |
| 286 | } |
| 287 | |
| 288 | /* |
| 289 | * Build the initial set of (unmerged) mappings from the virtual address |
no test coverage detected