FYI: fix some performance bugs with .gdb_index
Jan Kratochvil
jan.kratochvil@redhat.com
Mon Feb 20 21:04:00 GMT 2012
On Mon, 20 Feb 2012 21:42:28 +0100, Tom Tromey wrote:
> + visited_found = htab_create_alloc (10,
> + htab_hash_pointer, htab_eq_pointer,
> + NULL, xcalloc, xfree);
[...]
> + visited_not_found = htab_create_alloc (10,
> + htab_hash_pointer, htab_eq_pointer,
> + NULL, xcalloc, xfree);
[...]
> + htab_t visited = htab_create_alloc (10, htab_hash_pointer, htab_eq_pointer,
> + NULL, xcalloc, xfree);
Just wouldn't be obstack + hashtab_obstack_allocate more appropriate here?
Thanks,
Jan
More information about the Gdb-patches
mailing list