fix: 移除有问题的runtime.SetFinalizer
This commit is contained in:
@@ -2661,6 +2661,10 @@ func (t *Thinker) muLock() {
|
|||||||
|
|
||||||
// muUnlock releases t.mu and clears the tracking.
|
// muUnlock releases t.mu and clears the tracking.
|
||||||
func (t *Thinker) muUnlock() {
|
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.muLockedBy = ""
|
||||||
t.mu.Unlock()
|
t.mu.Unlock()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user