diff options
author | Than McIntosh <thanm@google.com> | 2019-04-25 10:35:47 -0400 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2019-04-25 23:42:12 +0000 |
commit | 9ac471a87d8a7fdd1741bdfd48399e7215023989 (patch) | |
tree | 278051ff1ec257e252e18490a1d2aad0f9739e81 /api | |
parent | 4598c23c6c7a0062a21da1bad9fe73d149733da5 (diff) | |
download | go-9ac471a87d8a7fdd1741bdfd48399e7215023989.tar.gz go-9ac471a87d8a7fdd1741bdfd48399e7215023989.zip |
cmd/link: use read-only mmap to back selected symbol name strings
When reading symbol names from an object file, if a name does not
need fixup (conversion of "". to package path), then generate
a string whose backing store is in read-only memory (from an mmap
of the object file), avoiding the need for an allocation. This
yields a modest reduction in total linker heap use.
Change-Id: I95719c93026b6cc82eb6947a9d14063cf3a6679c
Reviewed-on: https://go-review.googlesource.com/c/go/+/173938
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions