Re: [10/15] Basic value access routines

Tom Tromey
2009-06-24T15:31:34Z

>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:

Ulrich> Those are additional minor issues; the type structures are indeed
Ulrich> space critical

I have been curious about this.

It seems to me that in a given gdb session, most types will not
actually be needed. (I haven't done the experiment though.)

If that is so, then it further seems to me that types would only be
space critical if we are instantiating them too eagerly. This has
lead me to wonder whether lazy instantiation of types would be
beneficial.

A related idea that occurred to me is that, with Jan's type GC, we
could detach types from objfiles and "intern" them (something like
bcache-for-types). This would only be a win if there are many
identical types distributed across objfiles, though.

Tom