OSDN Git Service

Add a bit-map encoding of Object-reference field offsets to ClassObject.
authorBarry Hayes <bhayes@google.com>
Wed, 8 Jul 2009 17:01:56 +0000 (10:01 -0700)
committerBarry Hayes <bhayes@google.com>
Wed, 26 Aug 2009 16:39:46 +0000 (09:39 -0700)
commit6daaac12e5de630749f94ff5f15e902e7b18d8e7
treeda91ff6380b771d635d877af430a14d8591533c8
parentdde8ab037540aaec554a471d67613b959cc0e9f4
Add a bit-map encoding of Object-reference field offsets to ClassObject.

Class.c populates a new field with a bit for each of the first 32 instance
fields, to show if it is a reference or not, and an escape value if there is a
reference field beyond 32.

The GC uses the encoded bitmap -- if available -- to extract Object refererences
from DataObjects.
vm/oo/Class.c
vm/oo/Object.h