Skip to content
Commit bdb60857 authored by Xin-Xin Wang's avatar Xin-Xin Wang Committed by Maksim Panchenko
Browse files

[BOLT] Make .debug_loc update deterministic

Summary:
Change the single DebugLocWriter to one for each compilation unit. Then, each thread can write to its own DebugLocWriter and we can combine the data in a deterministic order once the threads are done.

The only catch is that each thread would need the offset of the location lists it adds, so we make a list of pending location list patches and compute the final offsets at the end.

(cherry picked from FBD18153069)
parent e5d1334a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment