You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy just used pages from huge ANONYMOUS mappings.
ASan creates a "shadow" of the used memory.
This is done in a mapping of around 20 TB address space,
but most of it is not yet used.
This patch helps an ASan-enabled rr build in following tests:
nested_detach
nested_detach_kill
nested_detach_kill_stuck
nested_detach_wait
nested_release
Avoids error message:
ERROR: AddressSanitizer: requested allocation size 0x20000000000 (0x20000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
Changes in V4:
- Rename variable offset to page_offset to know the stored units.
- Rename read_count to page_read_count.
- Remove unneded check if inside the mapping.
- Fixed parentheses in condition.
- Use type size_t instead of ssize_t to avoid
different signedness comparision warning.
0 commit comments