Skip to content

Commit 02d4bcc

Browse files
committed
Proposal #74609: goroutine leak detection by using the garbage collector.
1 parent 3636ced commit 02d4bcc

File tree

12 files changed

+542
-45
lines changed

12 files changed

+542
-45
lines changed

src/internal/goexperiment/exp_deadlockgc_off.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/goexperiment/exp_deadlockgc_on.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/goexperiment/flags.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,7 @@ type Flags struct {
133133
// RandomizedHeapBase enables heap base address randomization on 64-bit
134134
// platforms.
135135
RandomizedHeapBase64 bool
136+
137+
// DeadlockGC enables the Deadlock GC implementation.
138+
DeadlockGC bool
136139
}

src/runtime/export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ func (t *SemTable) Enqueue(addr *uint32) {
12221222
s.releasetime = 0
12231223
s.acquiretime = 0
12241224
s.ticket = 0
1225-
t.semTable.rootFor(addr).queue(addr, s, false)
1225+
t.semTable.rootFor(addr).queue(addr, s, false, false)
12261226
}
12271227

12281228
// Dequeue simulates dequeuing a waiter for a semaphore (or lock) at addr.

0 commit comments

Comments
 (0)