- Notifications
You must be signed in to change notification settings - Fork18.4k
Commitfc9a18f
committed
[release-branch.go1.1] cmd/8g: Make clearfat non-interleaved with pointer calculations.
««« CL 11383043 / dc24634de6c5cmd/8g: Make clearfat non-interleaved with pointer calculations.clearfat (used to zero initialize structures) will use AX for x86 block ops. If we write to AX while calculating the dest pointer, we will fill the structure with incorrect values.Since 64-bit arithmetic uses AX to synthesize a 64-bit register, getting an adress by indexing with 64-bit ops can clobber the register.Fixes#5820.R=golang-dev, rscCC=golang-devhttps://golang.org/cl/11383043»»»Update#5928R=golang-dev, bradfitzCC=golang-devhttps://golang.org/cl/116980431 parentf2fa995 commitfc9a18f
2 files changed
+19
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
82 | 81 |
| |
83 | 82 |
| |
| 83 | + | |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + |
0 commit comments
Comments
(0)