Posted in

Golang八股文实战压测:用1行代码触发chan send阻塞、用2个goroutine复现map并发写panic、用3个defer暴露执行栈陷阱

第一章:Golang八股文实战压 … Golang八股文实战压测:用1行代码触发chan send阻塞、用2个goroutine复现map并发写panic、用3个defer暴露执行栈陷阱Read more

Posted in

【Golang配置中心陷阱】:Viper热重载引发的goroutine泄漏+map并发写panic,替代方案:基于fsnotify+atomic.Value的轻量级实现

第一章:Golang配置中心陷阱 … 【Golang配置中心陷阱】:Viper热重载引发的goroutine泄漏+map并发写panic,替代方案:基于fsnotify+atomic.Value的轻量级实现Read more

Posted in

【Go面试高频题深度拆解】:map并发写panic的栈回溯中runtime.mapassign_fast64代表什么?3分钟看懂编译器特化逻辑

第一章:Go map为什么并发不 … 【Go面试高频题深度拆解】:map并发写panic的栈回溯中runtime.mapassign_fast64代表什么?3分钟看懂编译器特化逻辑Read more

Posted in

Go map并发写panic背后:非struct value触发runtime.writeBarrierPtr失效,导致GC标记错乱(附GODEBUG=gctrace=1日志分析)

第一章:Go map并发写pan … Go map并发写panic背后:非struct value触发runtime.writeBarrierPtr失效,导致GC标记错乱(附GODEBUG=gctrace=1日志分析)Read more