public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug compile/17938] New: Calling clear_symtab_users is indeed too costly
@ 2015-02-06 22:53 dje at google dot com
  0 siblings, 0 replies; only message in thread
From: dje at google dot com @ 2015-02-06 22:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17938

            Bug ID: 17938
           Summary: Calling clear_symtab_users is indeed too costly
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: compile
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

compile-object-run.c has this:

        /* It may be a bit too pervasive in this dummy_frame dtor callback.  */
        clear_symtab_users (0);

This is indeed too pervasive (costly).

Python scripts will get a clear_objfiles event which an trigger large scale
flushing of cached data.  Plus it will flush the symbol lookup cache.

Earlier the function does this:

        free_objfile (objfile);

What we need on the python side is an objfile_freed event.

Are there other reasons why clear_symtab_users is called here?
I see that free_objfile does some of the things that clear_symtab_users does.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-06 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 22:53 [Bug compile/17938] New: Calling clear_symtab_users is indeed too costly dje at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).