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

Implement finalizeInBackground. #159

Merged
merged 1 commit into from Jun 21, 2015
Merged

Implement finalizeInBackground. #159

merged 1 commit into from Jun 21, 2015

Conversation

@Ms2ger
Copy link
Collaborator

Ms2ger commented Jun 21, 2015

This prevents SM from silently finalizing objects off the JSRuntime's thread.

This prevents SM from silently finalizing objects off the JSRuntime's thread.
@metajack
Copy link
Contributor

metajack commented Jun 21, 2015

@Ms2ger Why is this needed?

@Ms2ger
Copy link
Collaborator Author

Ms2ger commented Jun 21, 2015

Without this, we end up calling Document::drop off the script thread, which introduces data races.

@metajack
Copy link
Contributor

metajack commented Jun 21, 2015

Out of curiosity, does Firefox let the JS engine finalize in the background? How do they deal with it?

@metajack
Copy link
Contributor

metajack commented Jun 21, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Jun 21, 2015

📌 Commit 32b64a9 has been approved by metajack

@bors-servo
Copy link
Contributor

bors-servo commented Jun 21, 2015

Testing commit 32b64a9 with merge 5369714...

bors-servo pushed a commit that referenced this pull request Jun 21, 2015
Implement finalizeInBackground.

This prevents SM from silently finalizing objects off the JSRuntime's thread.
@bors-servo
Copy link
Contributor

bors-servo commented Jun 21, 2015

💔 Test failed - cargo-mac

Ms2ger added a commit that referenced this pull request Jun 21, 2015
Implement finalizeInBackground; r=jack
@Ms2ger Ms2ger merged commit e1cc7e1 into master Jun 21, 2015
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/appveyor AppVeyor build failed
Details
homu Test failed
Details
@Ms2ger Ms2ger deleted the finalizeInBackground branch Jun 21, 2015
@Ms2ger
Copy link
Collaborator Author

Ms2ger commented Jun 21, 2015

Gecko doesn't allow it either.

mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
Using x11-rs for X11 bindings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.