OSDN Git Service

Pull the globals iteration into InitRefs.
authorDan Bornstein <danfuzz@android.com>
Tue, 22 Mar 2011 21:47:44 +0000 (14:47 -0700)
committerDan Bornstein <danfuzz@android.com>
Tue, 22 Mar 2011 23:45:14 +0000 (16:45 -0700)
commitc399ea527d0d50c6e2b4ae15fc4a3e9a18f3f1f1
tree8a4174b0acde27e7ac694757262550d3d43aa73b
parentfdbec44654895d58aad01f84596b2d35faa1e2e4
Pull the globals iteration into InitRefs.

This gives the new GC a way to iterate over the global object refs
defined in Globals.h, without having to have detailed knowledge of the
list of such refs. However, this change doesn't actually modify the GC
code in question, since it is not currently in a working state anyway.

InitRefs.c probably wants a slightly different name. Suggestions welcome.

Bonus: Cleaned up a vaguely-related clause in Class.c.

Change-Id: I406987c56ddf310c61d877574071c46f3717fc72
vm/Init.h
vm/InitRefs.c
vm/oo/Class.c