-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: ahmedre Differential Revision: D4398446 fbshipit-source-id: ff528b7b52a2b1521627c0fca17b7ee2b18102de
- Loading branch information
1 parent
1d9ba50
commit b27c541
Showing
9 changed files
with
99 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
b27c541
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @emilsjolander @ahmedre, I have a question about the usage of
sPool
object in this commit. If I understand correctly, RN has two threads (or more?) that can update props, the main activity thread and the bridge thread:and
But since
SimplePool
is not thread-safe, I'm seeing crashes when accessing thesPool
object. There are also issues when a prop receives wrong value types, e.g. int64 when string is expected. I suspect those are related as well. What do you think?cc @gpeal
b27c541
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lelandrichardson and I looked at this issue together, and we now understand why we only started to see it recently. Currently the only dynamic props are size props such as
left
,paddingVertical
andmargin
. These props are only used in layout thread so everything works. Recently I made a change to support more values inaccessibilityComponentType
, and in that process I made this prop dynamic as well. Unfortunately this prop is used in main UI thread. So now both threads can access thissPool
object.