Pointer to RTTI information in vtable

Matt Austern austern at isolde.engr.sgi.com
Wed Oct 27 17:39:22 UTC 1999


At the October 14 meeting we decided to include RTTI information as
part of the vtable block, and to include an offset to RTTI information
in the vtable rather than a pointer to RTTI information.  (We decided
on this change so that we would have fewer symbols to resolve at link
time.)

Jim came up with a serious objection at the October 21 meeting:
during construction we need different RTTI information at different
points.  A few of us talked about this at Kona, and my impression is
that Jim's objection is fatal.  We could imagine having base class
typeinfo objects in every vtable block, but (1) this would kill any
performance advantage we'd get by using an offset rather than a
pointer; and (2) we'd lose the ability to use simple pointer identity
as a way of telling whether two typeinfos represent the same type.

I propose that we abandon that decision, and go back to using pointers.
Does everyone agree?

			--Matt




More information about the cxx-abi-dev mailing list