go-eden / routine

Provides some convenient API, includes Goid(), GetG() and LocalStorage, which is a goroutine's local storage, just like ThreadLocal in other languages.
MIT License
114 stars 20 forks source link

一般什么条件下会调用 getGoidByStack 从堆栈中获取 goid? #6

Closed cjphaha closed 2 years ago

cjphaha commented 2 years ago

大佬您好,获取 goid 的降级有什么条件吗?

sisyphsu commented 2 years ago
  1. golang版本过低,现在一般都不会用那么旧的版本
  2. golang版本过高,没来得及升级的话,会默认降级为getGoidByStack
cjphaha commented 2 years ago

抱歉刚看到大佬留言,谢谢!