OSDN Git Service

Move the code in scanObject which sets the scanGeneration [and other fields] of
authorBarry Hayes <bhayes@google.com>
Mon, 16 Mar 2009 23:10:35 +0000 (16:10 -0700)
committerBarry Hayes <bhayes@google.com>
Mon, 16 Mar 2009 23:10:35 +0000 (16:10 -0700)
commit3592d62dc67f76ac641d97d8f7093d9cbb506b39
tree43f74d88cccc84fdb73246412f46130340f8138b
parentdd4aa46de434291701c49f2291cd8d5b030b2f98
Move the code in scanObject which sets the scanGeneration [and other fields] of
a chunk to before the early return in the cases where clazz is either NULL or
unlinkedJavaLangClass.

This way the "wasn't scanned last time" check in _markObjectNonNullCommon will
see the scanGeneration and markGeneration as equal, and won't dvmAbort.
vm/alloc/MarkSweep.c