OSDN Git Service

Handle OOME during threadstress finishing message
authorMathieu Chartier <mathieuc@google.com>
Fri, 18 Sep 2015 03:46:56 +0000 (20:46 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 18 Sep 2015 17:59:39 +0000 (10:59 -0700)
commit72e36d84d8c6eb4a0396ce7e4de8f696ad3d2a7f
treeb0674ce1c1650c842e05f269585bb9ede2e26bbd
parent10da8717e5e909556c7e7610d212db6c65fefbe2
Handle OOME during threadstress finishing message

If there is an OOME that occurs after the "Finishing workers" it
caused the test to fail.

Also guard worker thread creation by try catch for OOME.

Bug: 18577101
Change-Id: I69367be0aad3f60093c02c7f63ae3c20757fb89b
test/004-ThreadStress/src/Main.java