commit | 2efc12622b0a98cde09447f2bfeb47667c5dd192 | [log] [tgz] |
---|---|---|
author | Carl Shapiro <cshapiro@google.com> | Wed Feb 02 17:54:26 2011 -0800 |
committer | Carl Shapiro <cshapiro@google.com> | Wed Feb 02 17:55:50 2011 -0800 |
tree | dcaeefc2ae37d74fe36e2b54ce978e7ca55e5e51 | |
parent | a754fbb1555f9ac2d14de0ffd0046c780732da5a [diff] |
Guard against uninitialized objects when counting instances. Objects marked in the live object bitmap are not guaranteed to have their class object pointer installed. With this change the subclass check is short circuited when an NULL class pointer is encountered. Previously, the class pointer was blindly assumed to be valid which could cause the instance-of check to abort the VM. Change-Id: I2d8810f1efd7643015e3ce3cf1dd93d90d330eee