commit | cfa089df23ff50fcd5ed3854c54991d30be5fc7e | [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:35:00 2013 -0700 |
tree | c64519db5533b9324efe7e4a712ba327860bbb9d | |
parent | 74b324ac09db35d29d16695e9b9c1f0601599812 [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 Change-Id: I1bb4497d4f7528eacce0db35c2014771cba64569