OSDN Git Service

Minor clean-ups of the reference processing code.
authorCarl Shapiro <cshapiro@google.com>
Mon, 12 Jul 2010 21:02:28 +0000 (14:02 -0700)
committerCarl Shapiro <cshapiro@google.com>
Mon, 12 Jul 2010 21:02:28 +0000 (14:02 -0700)
commita1b03a9f32d08974c9156ed23f2ed1d9b4442377
treeab4188a3523f620bfc0977256f9da6481c117355
parent09bd8016621de77c3793ee8c4a7fe224fc73eccf
Minor clean-ups of the reference processing code.

* Eliminate two dead stores to a pendingNextOffset variable.  This
  value is only needed in the abstractions that delaying, enqueue and
  dequeue of references.

* Clean-up the comment that preceeds the reference list walking.  This
  comment was originally copied from the code that preserves soft
  references.  That routine walks the list, but the clearing code
  actually unlinks the list.

* Remove the the dirtyObjectVisitor.  This does the exact same thing
  as the existing scanObject code.

Change-Id: I20b68e52e4147aa602dd317392f68809ba4d7c63
vm/alloc/MarkSweep.c