Commit 361d51a
runtime: remove the pc field of _defer struct
Since we always can get the address of `CALL runtime.deferreturn(SB)`
from the unwinder, so it is not necessary to record the caller's pc
in the _defer struct. For the stack allocated _defer, this CL makes
the frame smaller.
Change-Id: I0fd347e4bc07cf8a9b954816323df30fc52552b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/716720
Reviewed-by: Keith Randall <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>1 parent 00ee186 commit 361d51a
File tree
4 files changed
+9
-21
lines changed- src
- cmd/compile/internal/ssagen
- runtime
4 files changed
+9
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7797 | 7797 | | |
7798 | 7798 | | |
7799 | 7799 | | |
7800 | | - | |
| 7800 | + | |
7801 | 7801 | | |
7802 | 7802 | | |
7803 | 7803 | | |
| |||
7817 | 7817 | | |
7818 | 7818 | | |
7819 | 7819 | | |
7820 | | - | |
7821 | 7820 | | |
7822 | 7821 | | |
7823 | 7822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | 385 | | |
387 | 386 | | |
388 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
| |||
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
461 | | - | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
| |||
518 | 516 | | |
519 | 517 | | |
520 | 518 | | |
521 | | - | |
522 | 519 | | |
523 | 520 | | |
524 | 521 | | |
| |||
547 | 544 | | |
548 | 545 | | |
549 | 546 | | |
550 | | - | |
551 | 547 | | |
552 | 548 | | |
553 | 549 | | |
| |||
977 | 973 | | |
978 | 974 | | |
979 | 975 | | |
980 | | - | |
981 | | - | |
982 | 976 | | |
983 | 977 | | |
984 | 978 | | |
| |||
1018 | 1012 | | |
1019 | 1013 | | |
1020 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
| |||
1273 | 1273 | | |
1274 | 1274 | | |
1275 | 1275 | | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | 1276 | | |
1286 | 1277 | | |
1287 | 1278 | | |
| |||
1304 | 1295 | | |
1305 | 1296 | | |
1306 | 1297 | | |
1307 | | - | |
| 1298 | + | |
1308 | 1299 | | |
1309 | 1300 | | |
1310 | 1301 | | |
| |||
1367 | 1358 | | |
1368 | 1359 | | |
1369 | 1360 | | |
1370 | | - | |
| 1361 | + | |
1371 | 1362 | | |
1372 | 1363 | | |
1373 | 1364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | 1095 | | |
| |||
0 commit comments