Commit ac87d84
internal/event/label: unsafe unsafe.String{,Data} not StringHeader
The old way is deprecated and appears to create a liveness hole
(i.e. hides a pointer from the GC), though the compiler does seem
to have a special case for it (see ir.IsReflectHeaderDataField).
Change-Id: I3e2d3b0d7a8d7b58d0adca55f5c8e87fce9c4d90
Reviewed-on: https://go-review.googlesource.com/c/tools/+/725900
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>1 parent c3feb70 commit ac87d84
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
| |||
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 117 | + | |
124 | 118 | | |
125 | 119 | | |
126 | 120 | | |
| |||
0 commit comments