OSDN Git Service

Fix a comment that misrepresents the root marking algorithm.
authorCarl Shapiro <cshapiro@google.com>
Mon, 13 Dec 2010 00:00:59 +0000 (16:00 -0800)
committerCarl Shapiro <cshapiro@google.com>
Mon, 13 Dec 2010 00:07:30 +0000 (16:07 -0800)
commit9a4556face22e74ca549e95155e428869505b2c7
tree8e8dac32613607deda41afe40ff319ed292b5f72
parent9ac2199331bdee44504c0328c2d4e99fdd545416
Fix a comment that misrepresents the root marking algorithm.

During the initial root marking nothing is pushed on the mark stack.
Marked roots are pushed during the scanning phase following root
marking.  Unfortunately, the comment above the root marking callback
incorrectly claimed that it pushed objects on the mark stack.

In addition, this change renames the marking callback for the re-mark
phase to more accurately reflect its limited usage.

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