fix: 移除有问题的runtime.SetFinalizer
This commit is contained in:
1 parent
76e648aac3
commit
d4c246fa0c
1 file changed
+4
@@ -2661,6 +2661,10 @@ func (t *Thinker) muLock() {
|
||||
|
||||
// muUnlock releases t.mu and clears the tracking.
|
||||
func (t *Thinker) muUnlock() {
|
||||
held := time.Since(t.muLockedAt)
|
||||
if held > 5*time.Second {
|
||||
log.Printf("[debug] muUnlock: lock held for %v by %s", held.Round(time.Millisecond), t.muLockedBy)
|
||||
}
|
||||
t.muLockedBy = ""
|
||||
t.mu.Unlock()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user