Commit 6dda16a
authored
purego: use sync.Pool in syscall_syscall15X (#328)
This works around the stack growth issue in 05d8da4 by not marking the function as nosplit.
This commit uses a pool to cache syscall15Args instances. Otherwise a new instance
was allocated on the heap for each purego call.1 parent cdb93a8 commit 6dda16a
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
0 commit comments