Skip to content

Remove PThread.mainThreadFutex from JavaScript. NFC #12887

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

Merged
merged 2 commits into from
Nov 26, 2020

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 25, 2020

This variable is initialized from _main_thread_futex which is a data
address exported from native code. Rather than copy it we can simply
use that variable directly.

I think it made sense to have a seperate JS variable in the past when
this address was allocated at runtime, but since #12318 landed it
is no longer needed.

Also rename the exported variable to avoid conflict with user symbols.

This variable is initialized from `_main_thread_futex` which is a data
address exported from native code.  Rather than copy it we can simply
use that variable directly.

I think it made sense to have a seperate JS variable in the past when
this address was allocated at runtime, but since #12318 landed it
is no longer needed.
@sbc100 sbc100 requested a review from kripken November 25, 2020 23:33
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@sbc100 sbc100 merged commit a26bc33 into master Nov 26, 2020
@sbc100 sbc100 deleted the remove_mainThreadFutex branch November 26, 2020 00:55
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