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

希望添加来源声明 #12

Closed timandy closed 2 years ago

timandy commented 2 years ago

看了最新版本源码,其中 goid 获取方式基本参考了我的 gohack 项目。希望作者能声明下来源和地址,谢谢!

sisyphsu commented 2 years ago

我在文档中增加了鸣谢章节,说明了internal/g模块的代码来源,请查看。

不过我确实没有注意到你的gohack项目,而是在查看forks变更时,发现你的routine版本中增加的g0对于偏移量计算很有帮助,新版store的垃圾回收机制也受到了labels相关逻辑的启发。