mirror of
https://github.com/golang/go
synced 2024-11-24 10:20:01 -07:00
[dev.link] cmd/compile: make GC map symbols content-addressable
Change-Id: I20e5b580b3e0505473816fe7f277a74e13d33e64 Reviewed-on: https://go-review.googlesource.com/c/go/+/242080 Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
27342e5bd9
commit
17344d55d6
@ -1563,6 +1563,7 @@ func (lv *Liveness) emit() (argsSym, liveSym, regsSym *obj.LSym) {
|
||||
makeSym := func(tmpSym *obj.LSym) *obj.LSym {
|
||||
return Ctxt.LookupInit(fmt.Sprintf("gclocals·%x", md5.Sum(tmpSym.P)), func(lsym *obj.LSym) {
|
||||
lsym.P = tmpSym.P
|
||||
lsym.Set(obj.AttrContentAddressable, true)
|
||||
})
|
||||
}
|
||||
if !go115ReduceLiveness {
|
||||
|
@ -1715,6 +1715,7 @@ func dgcptrmask(t *types.Type) *obj.LSym {
|
||||
duint8(lsym, i, x)
|
||||
}
|
||||
ggloblsym(lsym, int32(len(ptrmask)), obj.DUPOK|obj.RODATA|obj.LOCAL)
|
||||
lsym.Set(obj.AttrContentAddressable, true)
|
||||
}
|
||||
return lsym
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user