mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: convert fields of LSym from uint8 to bool
No performance regression measurable: name old time/op new time/op delta Template 432ms ± 3% 422ms ± 2% -2.34% (p=0.010 n=10+9) GoTypes 1.46s ± 1% 1.46s ± 1% ~ (p=0.796 n=10+10) Compiler 7.15s ± 1% 7.14s ± 1% ~ (p=0.447 n=10+9) Change-Id: I21b93cb989017b6fec2215de2423d87f25cf538c Reviewed-on: https://go-review.googlesource.com/21220 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
8eec2bbfbc
commit
2326c24cc7
8 changed files with 54 additions and 42 deletions
|
|
@ -135,7 +135,7 @@ func gcsymdup(s *Sym) {
|
|||
Fatalf("cannot rosymdup %s with relocations", ls.Name)
|
||||
}
|
||||
ls.Name = fmt.Sprintf("gclocals·%x", md5.Sum(ls.P))
|
||||
ls.Dupok = 1
|
||||
ls.Dupok = true
|
||||
}
|
||||
|
||||
func emitptrargsmap() {
|
||||
|
|
@ -442,7 +442,7 @@ func compile(fn *Node) {
|
|||
ptxt.From3.Offset |= obj.REFLECTMETHOD
|
||||
}
|
||||
if fn.Func.Pragma&Systemstack != 0 {
|
||||
ptxt.From.Sym.Cfunc = 1
|
||||
ptxt.From.Sym.Cfunc = true
|
||||
}
|
||||
|
||||
// Clumsy but important.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue