Repository navigation
Introduce safe checking whether DOMRefCell<T>.borrow_for_layout() is called from layout task - #3770
Closed
tetsuharuohzeki wants to merge 1 commit into
Closed
tetsuharuohzeki wants to merge 1 commit into
tetsuharuohzeki wants to merge 1 commit into
Conversation
Member
|
Fantastic! |
…called from layout task. This also introduces that checking DOMRefCell<T>'s borrow methods are NOT called from layout task.
|
Critic review: https://critic.hoppipolla.co.uk/r/2946 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
Contributor
|
I think I'll extend this to check access for GC tracing as well (see #3716) |
Contributor
|
Hm, the other parts of servo use |
Contributor
Author
|
we'll migrate to #3797 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Abstract
This pull request introduce these things for #3050:
DOMRefCell<T>.borrow_for_layout()method is only called from layout task.DOMRefCell<T>.borrow***()methods are NOT called from layout task.These approach do check dynamically whether methods can get a task local data if we call them on debug build.
Note
RefCell<T>in script task. But this pull request does not include it.