Skip to content

[wasm2js] Fix atomic notify to take an unsigned count - #5525

Merged
tlively merged 1 commit into
mainfrom
wasm2js-notify-count-unsigned
Feb 27, 2023
Merged

tlively merged 1 commit into
mainfrom
wasm2js-notify-count-unsigned

Conversation

@tlively

@tlively tlively commented Feb 27, 2023

Copy link
Copy Markdown
Member

Without this fix, the common idiom of using INT_MAX in C source to mean an
unlimited number of waiters should be woken up actually compiled down to an
argument of -1 in JS, causing zero waiters to be woken.

Without this fix, the common idiom of using `INT_MAX` in C source to mean an
unlimited number of waiters should be woken up actually compiled down to an
argument of -1 in JS, causing zero waiters to be woken.
@tlively

tlively commented Feb 27, 2023

Copy link
Copy Markdown
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@tlively
tlively merged commit edc2784 into main Feb 27, 2023
@tlively
tlively deleted the wasm2js-notify-count-unsigned branch February 27, 2023 21:40
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
Without this fix, the common idiom of using `INT_MAX` in C source to mean an
unlimited number of waiters should be woken up actually compiled down to an
argument of -1 in JS, causing zero waiters to be woken.
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