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
3 files changed
tree: 0eb3a05d72305db9b758ffc2d283ac5e428f9026
  1. build/
  2. oat_process/
  3. oat_runtime/
  4. src/
  5. test/
  6. tools/
  7. Android.mk