This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: reference counting for value


On Tue, Jul 07, 2009 at 08:25:44AM -0600, Tom Tromey wrote:
> Another idea I've been kicking around a bit is to also reference count
> the contents.  This would solve this particular problem without
> needing a bitfield->parent reference, as the two would just share some
> structure.

Would it?  We need to be able to fetch the contents in response to a
request from the bitfield, so everything needed to unlazy would
have to be in the shared structure; I guess that's address and length,
here.  Also lval type.  Would we have to duplicate these in the value
and the shared contents?

If two values have a shared contents structure, I'm not sure what
point there is having them different value structures in the first place.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]