-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Threading] Increase the stack size for the React queue on older Android phones #7416
Conversation
By analyzing the blame information on this pull request, we identified @mhorowitz and @astreet to be potential reviewers. |
@@ -44,10 +48,12 @@ public static Builder builder() { | |||
} | |||
|
|||
public static ReactQueueConfigurationSpec createDefault() { | |||
MessageQueueThreadSpec spec = Build.VERSION.SDK_INT < 20 ? |
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.
Did you verify this is the correct SDK int?
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.
We were seeing the issue on KitKat (specifically API 19, don't have API 20) but not Marshmallow (API 21+). Changed this check to < 21
so that we cover all of KitKat.
This seems reasonable, thanks for gating to lower android versions |
03a7c95
to
bc2dd2a
Compare
…oid phones Older Android devices don't have a large stack by default and with about 16 levels of views the app will crash. Modern Android devices are fine so we can continue to use the system defaults while using a 2MB stack on older Android devices. Test Plan: App that was crashing on older Android devices no longer crashes.
@ide updated the pull request. |
@facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
d4f6f61
Summary: Older Android devices don't have a large stack by default and with about 16 levels of views the app will crash. Modern Android devices are fine so we can continue to use the system defaults while using a 2MB stack on older Android devices. Closes facebook#7416 Differential Revision: D3276805 Pulled By: astreet fbshipit-source-id: a7b31a1be62e13f333148ca0908eb01a11aa4562
Summary: Older Android devices don't have a large stack by default and with about 16 levels of views the app will crash. Modern Android devices are fine so we can continue to use the system defaults while using a 2MB stack on older Android devices. Closes facebook#7416 Differential Revision: D3276805 Pulled By: astreet fbshipit-source-id: a7b31a1be62e13f333148ca0908eb01a11aa4562
Summary: Older Android devices don't have a large stack by default and with about 16 levels of views the app will crash. Modern Android devices are fine so we can continue to use the system defaults while using a 2MB stack on older Android devices. Closes facebook#7416 Differential Revision: D3276805 Pulled By: astreet fbshipit-source-id: a7b31a1be62e13f333148ca0908eb01a11aa4562
Older Android devices don't have a large stack by default and with about 16 levels of views the app will crash. Modern Android devices are fine so we can continue to use the system defaults while using a 2MB stack on older Android devices.
Test Plan: App that was crashing on older Android devices no longer crashes.
Fixes #5404