crosswalk-project/chromium-crosswalk — pull request #107 by hmin (2014-01-15 09:06:42+00:00)
Title: Fix the crash issue caused by no memory for TLS slot allocation

On Android ICS, the max number of thread local storage is limited to 64. It is problematic since it would be easy to exceed the max number in chromium very threaded environments.

These 2 commits are
1. Backport the patch from upstream for Chromium TLS mechanism implementation;
2. Make sure the ThreadLocalPointer uses the Chromium TLS mechnism instead of directly calling pthread_create_key, so that it canavoid the crash if the number of TLS slots allocated exceeds the max number
allowed by OS.

https://crosswalk-project.org/jira/browse/XWALK-841