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: [PATCH] New class allocate_on_obstack


>>>>> "Yao" == Yao Qi <qiyaoltc@gmail.com> writes:

Yao> This patch adds a new class allocate_on_obstack, and let dwarf2_per_objfile
Yao> inherit it, so that dwarf2_per_objfile is automatically allocated on
Yao> obstack, and "delete dwarf2_per_objfile" doesn't de-allocate any space.

I still think it should be restricted to types with a trivial
destructor.  Otherwise, someday, the lack of actual destruction is going
to cause a bug.

Tom


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