aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/x86/CodegenDriver.c
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2011-02-02 17:54:26 -0800
committerCarl Shapiro <cshapiro@google.com>2011-02-02 17:55:50 -0800
commit2efc12622b0a98cde09447f2bfeb47667c5dd192 (patch)
treedcaeefc2ae37d74fe36e2b54ce978e7ca55e5e51 /vm/compiler/codegen/x86/CodegenDriver.c
parenta754fbb1555f9ac2d14de0ffd0046c780732da5a (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
Diffstat (limited to 'vm/compiler/codegen/x86/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions