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][patch] Eliminate quadratic slow-down on number of solibs.


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

Paul> We have a test case which uses ~2800 shared libraries.

Awesome.

Paul> To address the repeated scanning for objective-c, I propose adding
Paul> n_objc_syms to the struct objstats, initializing that field to ~0,
Paul> and counting them in find_methods the first time we encounter a given
Paul> objfile. If we see that objfile again, and n_objc_syms == 0, find_methods
Paul> could return immediately.

This seems reasonable.

I wonder whether it should use the generic per-objfile data storage
stuff, rather than sticking ObjC-specific stuff directly into the
objfile.

Paul> Comments?

This look reasonable enough to me, though I'd prefer someone more
familiar with breakpoints take a look.

Paul>  /* Re-set all breakpoints after symbols have been re-loaded.  */
Paul>  void
Paul> -breakpoint_re_set (void)
Paul> +breakpoint_re_set_objfile (struct objfile *objfile)

The new argument needs a description in the function header.

Paul> +void
Paul> +breakpoint_re_set (void)

This needs a function header; I think you can just copy the old one.

Tom


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