From a65f1a467ff6a10dc6688f292dfa8a2e08cc1eb4 Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Fri, 15 Nov 2024 20:42:32 +0000 Subject: weak: move internal/weak to weak, and update according to proposal The updates are: - API documentation changes. - Removal of the old package documentation discouraging linkname. - Addition of new package documentation with some advice. - Renaming of weak.Pointer.Strong -> weak.Pointer.Value. Fixes #67552. Change-Id: Ifad7e629b6d339dacaf2ca37b459d7f903e31bf8 Reviewed-on: https://go-review.googlesource.com/c/go/+/628455 LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Auto-Submit: Michael Knyszek --- src/runtime/mgcsweep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/mgcsweep.go') diff --git a/src/runtime/mgcsweep.go b/src/runtime/mgcsweep.go index eb6d985ce0..b6890bac47 100644 --- a/src/runtime/mgcsweep.go +++ b/src/runtime/mgcsweep.go @@ -564,7 +564,7 @@ func (sl *sweepLocked) sweep(preserve bool) bool { } if hasFinAndRevived { // Pass 2: queue all finalizers and clear any weak handles. Weak handles are cleared - // before finalization as specified by the internal/weak package. See the documentation + // before finalization as specified by the weak package. See the documentation // for that package for more details. for siter.valid() && uintptr(siter.s.offset) < endOffset { // Find the exact byte for which the special was setup -- cgit v1.3