Work around a dalvik weakness.

Our register maps aren't good enough, so when the collector looks at the
FinalizerReference for the RandomAccessFile, the referent has been marked
because the RandomAccessFile is still pointed to by a dex register, and
the register maps don't take into account that that register can never be
accessed again after the current dex PC, so it should in fact not be marked.

This is a long-standing weakness (I can cause similar failures in Gingerbread).

Bug: 5412580
Change-Id: I1de253a3686701ee724f8fefd5a6230d11179bad
1 file changed