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] Eliminate quadratic slow-down on number of soilibs (part 2).


>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

Paul> +	{
Paul> +	  objc_csym = xmalloc (sizeof (*objc_csym));
Paul> +	  *objc_csym = objfile_csym;
Paul> +	  set_objfile_data (objfile, objc_objfile_data, objc_csym);
Paul> +	}

[...]

Paul> +void
Paul> +_initialize_objc_lang (void)
Paul> +{
Paul> +  objc_objfile_data = register_objfile_data ();
Paul> +}

I think this should probably call register_objfile_data_with_cleanup,
so that the per-objfile data can be freed when the objfile is
destroyed.

Tom


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