mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: scope test to linux & net.sendFile
Limits the scope of new test added in71c2bf5513. Discussion: https://go-review.googlesource.com/c/go/+/684377. Change-Id: I0e8f513eb564aae277ba8a80ebdad469eb1e6e6a GitHub-Last-Rev:add2b2e209GitHub-Pull-Request: golang/go#74720 Reviewed-on: https://go-review.googlesource.com/c/go/+/689916 Reviewed-by: Keith Randall <khr@golang.org> Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
71c2bf5513
commit
489868f776
2 changed files with 17 additions and 23 deletions
|
|
@ -278,7 +278,7 @@ func createDwarfVars(fnsym *obj.LSym, complexOK bool, fn *ir.Func, apDecls []*ir
|
|||
base.Fatalf("invalid heap allocated var without Heapaddr")
|
||||
}
|
||||
debug := fn.DebugInfo.(*ssa.FuncDebug)
|
||||
list := createHeapDerefLocationList(n, fnsym, debug.EntryID, ssa.FuncEnd.ID)
|
||||
list := createHeapDerefLocationList(n, debug.EntryID)
|
||||
dvar.PutLocationList = func(listSym, startPC dwarf.Sym) {
|
||||
debug.PutLocationList(list, base.Ctxt, listSym.(*obj.LSym), startPC.(*obj.LSym))
|
||||
}
|
||||
|
|
@ -558,7 +558,7 @@ func createComplexVar(fnsym *obj.LSym, fn *ir.Func, varID ssa.VarID, closureVars
|
|||
|
||||
// createHeapDerefLocationList creates a location list for a heap-escaped variable
|
||||
// that describes "dereference pointer at stack offset"
|
||||
func createHeapDerefLocationList(n *ir.Name, fnsym *obj.LSym, entryID, prologEndID ssa.ID) []byte {
|
||||
func createHeapDerefLocationList(n *ir.Name, entryID ssa.ID) []byte {
|
||||
// Get the stack offset where the heap pointer is stored
|
||||
heapPtrOffset := n.Heapaddr.FrameOffset()
|
||||
if base.Ctxt.Arch.FixedFrameSize == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue