commit | 7502e2a419f84808518cf212b3d7145c7b959c76 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sun Oct 02 13:24:37 2011 -0700 |
committer | Elliott Hughes <enh@google.com> | Sun Oct 02 13:24:37 2011 -0700 |
tree | 0eb3a05d72305db9b758ffc2d283ac5e428f9026 | |
parent | 5cb5ad27944efb08d4556b3c0d362302e37e832b [diff] |
Fix the 051-thread test. This changes Thread::Create to clean up the requested stack size before passing it to pthread_attr_setstacksize. I modified the test to work around the inherent raciness in the test, which currently causes us trouble because with all the debug logging, the thread that initializes System.out takes longer than 1ms, so the first 40 or so threads all get woken in non-numeric order. Change-Id: I8047bf00330aaf4210dcb53a4437b1fe0562179e