]> Cypherpunks repositories - gostls13.git/commit
weak: move internal/weak to weak, and update according to proposal
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 15 Nov 2024 20:42:32 +0000 (20:42 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 22:29:23 +0000 (22:29 +0000)
commita65f1a467ff6a10dc6688f292dfa8a2e08cc1eb4
tree4ca29ec30c468aa3a7c2fe3ffd63a9e8d18f4389
parent5e82cba9bdf45d81da549477d172f6b5e23106d4
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
15 files changed:
api/next/67552.txt [new file with mode: 0644]
doc/next/6-stdlib/1-weak.md [new file with mode: 0644]
doc/next/6-stdlib/99-minor/weak/67552.md [new file with mode: 0644]
src/cmd/link/internal/loader/loader.go
src/go/build/deps_test.go
src/go/doc/comment/std.go
src/internal/weak/pointer.go [deleted file]
src/runtime/gc_test.go
src/runtime/mgcsweep.go
src/runtime/mheap.go
src/unique/handle.go
src/unique/handle_test.go
src/weak/doc.go [new file with mode: 0644]
src/weak/pointer.go [new file with mode: 0644]
src/weak/pointer_test.go [moved from src/internal/weak/pointer_test.go with 93% similarity]