Skip to content

CABI: Remove the zero-index special case for callback return value#517

Merged
lukewagner merged 1 commit into
mainfrom
rm-zero-case
May 19, 2025
Merged

CABI: Remove the zero-index special case for callback return value#517
lukewagner merged 1 commit into
mainfrom
rm-zero-case

Conversation

@lukewagner
Copy link
Copy Markdown
Member

This PR removes a small optimization in the callback event loop which allowed the returned waitable-set index to be 0 (in which case the previous waitable-set was used). As is, there is no consideration for what happens if you waitable-set.drop the waitable-set in the interim, and adding rules to fix it seems to add more trouble than this small optimization is worth. Since 0 will always trap, we can always re-add this in the future if there were perf data suggesting it.

@lukewagner lukewagner merged commit e66bf2b into main May 19, 2025
2 checks passed
@lukewagner lukewagner deleted the rm-zero-case branch May 19, 2025 16:09
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.

3 participants