diff options
author | 2019-06-03 15:07:03 -0700 | |
---|---|---|
committer | 2019-06-03 15:52:27 -0700 | |
commit | cefa94bd27f696b975cc7c3dc97ba7ecc91ef0cc (patch) | |
tree | b8208cfa18747a5720a0566e7e93ffd407bc73e1 /bpf/bpf.go | |
parent | 06b2c69cfecaef535b1e1ccfd256d840dc80afe4 (diff) |
Fix data race and ordering consistency in apex modules
apexDepsMutator can be called on multiple apex modules in parallel,
and then two goroutines could call BuildForApex on the same module
in parallel, leading to a data race appending to apexVariations.
This also results in random ordering of the entries in
apexVariations.
Hold a mutex around appending to apexVariations, and sort it before
passing it to ctx.CreateVariations.
Fixes: 134425751
Test: m nothing
Change-Id: If5a3b53a778daacb3e26ac05cde872cf8eb980b3
Diffstat (limited to 'bpf/bpf.go')
0 files changed, 0 insertions, 0 deletions