]> Cypherpunks repositories - gostls13.git/commit
runtime: streamline moduledata.textAddr
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 5 Oct 2021 20:44:51 +0000 (13:44 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 6 Oct 2021 20:29:59 +0000 (20:29 +0000)
commit8238f82bf1ddadd906585e3f11600968d95ce98c
treedfc79b8c47324c4621e56eac204e873ead1defcf
parentf580b7511491c866a102f3f8be912be8f824b830
runtime: streamline moduledata.textAddr

Accept a uint32 instead of a uintptr to make call sites simpler.

Do less work in the common case in which len(textsectmap) == 1.

Change-Id: Idd6cdc3fdad7a9356864c83790463b5d3000171b
Reviewed-on: https://go-review.googlesource.com/c/go/+/354132
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/plugin.go
src/runtime/symtab.go
src/runtime/type.go