Skip to content

fix: 修复几个编译期和运行时的 bug - #41

Merged
bernardassan merged 1 commit into
tardy-org:mainfrom
by965738071:main
Jun 26, 2026
Merged

fix: 修复几个编译期和运行时的 bug#41
bernardassan merged 1 commit into
tardy-org:mainfrom
by965738071:main

Conversation

@by965738071

Copy link
Copy Markdown
Contributor
  • pool.zig: full() 里 self.list 写错了,应该是 self.items
  • runtime/lib.zig: 删掉不存在的 Timespec 导入,编译会报错
  • storage.zig: deinit 改成接收 *Storage 指针,别用值拷贝
  • lib.zig: 线程 spawn 失败时打日志,之前直接 catch return 静默吞掉错误会导致其他线程死等

- pool.zig: full() 里 self.list 写错了,应该是 self.items
- runtime/lib.zig: 删掉不存在的 Timespec 导入,编译会报错
- storage.zig: deinit 改成接收 *Storage 指针,别用值拷贝
- lib.zig: 线程 spawn 失败时打日志,之前直接 catch return 静默吞掉错误会导致其他线程死等
@bernardassan

Copy link
Copy Markdown
Collaborator

Looks good to me, thanks.

@bernardassan

Copy link
Copy Markdown
Collaborator

I have updated main branch to use the latest dev release of Zig, so checks won't pass.

Are using Zig dev or 0.16.x?

If you are using 0.16.x then I could cherry-pick these changes into zig-0.16.x and make a patch release so that you can use that, or else enjoy dev.

@by965738071

Copy link
Copy Markdown
Contributor Author

Latest Zig code. zig-0.17-dev

@bernardassan
bernardassan merged commit 49f5605 into tardy-org:main Jun 26, 2026
3 of 4 checks passed
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