[go] runtime: reusable intrusive doubly-linked list

1 view
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Nov 11, 2025, 4:08:50 PM (yesterday) Nov 11
to Michael Pratt, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Michael Knyszek, golang-co...@googlegroups.com

Gopher Robot submitted the change with unreviewed changes

Unreviewed changes

4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: src/runtime/list.go
Insertions: 7, Deletions: 1.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/runtime/list_manual.go
Insertions: 7, Deletions: 1.

The diff is too large to show. Please review the diff.
```

Change information

Commit message:
runtime: reusable intrusive doubly-linked list

Unfortunately we have two nearly identical types. One for standard types
and one for sys.NotInHeap types or cases that must avoid write barriers.
The latter must use uintptr fields, as assignment to unsafe.Pointer
fields generates a write barrier.
Change-Id: I6a6a636c62d83fa93b991033c7108d3b934412ac
Reviewed-by: Michael Knyszek <mkny...@google.com>
Commit-Queue: Michael Pratt <mpr...@google.com>
Auto-Submit: Michael Pratt <mpr...@google.com>
Files:
  • M src/runtime/export_test.go
  • A src/runtime/list.go
  • A src/runtime/list_manual.go
  • A src/runtime/list_manual_test.go
  • A src/runtime/list_test.go
Change size: L
Delta: 5 files changed, 949 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Michael Knyszek
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I6a6a636c62d83fa93b991033c7108d3b934412ac
Gerrit-Change-Number: 714020
Gerrit-PatchSet: 12
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages