[cxx-abi-dev] Vtable layout question

Dennis Handly dhandly at cup.hp.com
Fri Jul 25 05:21:30 UTC 2003


>My question is why does the location and order of the secondary vtables
>matter.  I *think* the only way to get to one of these secondary vtables
>is through the VTT, in which case all that really matters is that the
>pointers in the VTT point to the correct vtables and the actual ordering
>and location of those vtables is immaterial.
Steve Ellcey

I believe Mark mentioned this was for an optimization that didn't prove
useful in the long term.

Also, g++ accesses the secondary vtables directly in the ctors/dtors of
the complete object versions.  The base object versions would use the
entries in the VTT.



More information about the cxx-abi-dev mailing list