Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 修改 getg 在amd64平台上的实现方式 #17

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

Ruomenger
Copy link
Contributor

@Ruomenger Ruomenger commented Oct 9, 2023

根据 https://go.googlesource.com/go/+/refs/heads/dev.regabi/src/cmd/compile/internal-abi.md 的描述,在amd64体系上go使用r14寄存器保存当前协程。

那么可以修改目前的getg实现,统一从r14寄存器中获取信息。

参见: #16

@taoso taoso merged commit ca6162e into go-kiss:master Oct 9, 2023
12 checks passed
@Ruomenger Ruomenger deleted the change-get-g-impl branch October 9, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants