diff options
author | Keith Randall <khr@golang.org> | 2023-01-12 20:25:39 -0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2023-03-03 23:11:37 +0000 |
commit | ce2a609909d9de3391a99a00fe140506f724f933 (patch) | |
tree | 73fcbd68f8148f993ca3717ea5fd3bec224c7f56 /src/cmd/compile/internal/coverage/cover.go | |
parent | cd6d225bd30608544ecf4a3e5a7aa1d0607a66db (diff) | |
download | go-git-ce2a609909d9de3391a99a00fe140506f724f933.tar.gz |
cmd/link: establish dependable package initialization order
As described here:
https://github.com/golang/go/issues/31636#issuecomment-493271830
"Find the lexically earliest package that is not initialized yet,
but has had all its dependencies initialized, initialize that package,
and repeat."
Simplify the runtime a bit, by just computing the ordering required
in the linker and giving a list to the runtime.
Update #31636
Fixes #57411
RELNOTE=yes
Change-Id: I1e4d3878ebe6e8953527aedb730824971d722cac
Reviewed-on: https://go-review.googlesource.com/c/go/+/462035
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/coverage/cover.go')
0 files changed, 0 insertions, 0 deletions