diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-04-09 09:02:58 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-04-09 08:33:12 +0000 |
| commit | da07505f2b87b144347aa19597979d340b134b06 (patch) | |
| tree | 9b4cb823a01ffc801097465b1dc7a43f7092d826 /pkg/instance | |
| parent | bf86f5aaada407ff2fed28fe03bc0b892caf4e41 (diff) | |
pkg/cover: don't memorize all coverage points twice
Currently we memorize all coverage points twice:
as a slice and as a map.
The map also contains __sanitizer_cov_trace_cmp PCs,
but I think that's wrong, it should contain only
__sanitizer_cov_trace_pc callbacks.
We were careful to put as least pressure on the GC as possible
by keeping all PCs as a dense allCoverPoints slice and subslicing it
in all symbol/compilation unit objects.
Don't duplicate coverage points in the map and just use the same slice
we store for other purposes.
Diffstat (limited to 'pkg/instance')
0 files changed, 0 insertions, 0 deletions
