commit | 96449b3dc16d64ea91df83c9d7942f3e22e76b52 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Mar 29 16:35:00 2013 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Mar 29 16:58:33 2013 -0700 |
tree | 997d2426cee1da6870a2bd549c55afae68db2b80 | |
parent | b24b6e1419382146f85571cdda27d48fb348141d [diff] |
Extra logging in pthread_create. pthread_create returns EAGAIN when it can't allocate a pthread_internal_t, when it can't allocate a stack for the new thread, or when clone(2) fails because there are too many threads. It's useful to be able to know why your pthread_create just failed, so add some logging. Bug: 8470684 (cherry picked from commit cfa089df23ff50fcd5ed3854c54991d30be5fc7e) Change-Id: Ibfc98a84c1817a931f9ae4c2b88762f0edfb6b79