OSDN Git Service

Add null check for thread name creation
authorMathieu Chartier <mathieuc@google.com>
Tue, 11 Nov 2014 00:58:19 +0000 (16:58 -0800)
committerMathieu Chartier <mathieuc@google.com>
Tue, 11 Nov 2014 01:44:38 +0000 (17:44 -0800)
commita7ade888ab99b1453571d14c41d4a0322c400fcd
tree954310a67550e4902edea63c103d27c4f30c165c
parent200b82ba39bd1f4a50cbff8e1b5dca4f5843053f
Add null check for thread name creation

Previously we didn't check for null which could result in check jni
failures if we tried to throw another OOM in the next allocation.

Bug: 18297817
Change-Id: I459b1de7760a4009e410fdbdcacdb748d13fbc1d
runtime/thread.cc