diff options
Diffstat (limited to 'src/internal/trace/parser.go')
| -rw-r--r-- | src/internal/trace/parser.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/trace/parser.go b/src/internal/trace/parser.go index 3bbfbebab4..a263421792 100644 --- a/src/internal/trace/parser.go +++ b/src/internal/trace/parser.go @@ -914,7 +914,7 @@ func symbolize(events []*Event, bin string) error { // Write all pcs to addr2line. // Need to copy pcs to an array, because map iteration order is non-deterministic. - var pcArray []uint64 + pcArray := make([]uint64, 0, len(pcs)) for pc := range pcs { pcArray = append(pcArray, pc) _, err := fmt.Fprintf(in, "0x%x\n", pc-1) |
