public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] users/jkratoch/indexcxx-nameswrite: . Date: Wed, 24 May 2017 07:39:00 -0000 [thread overview] Message-ID: <20170524073813.38738.qmail@sourceware.org> (raw) The branch, users/jkratoch/indexcxx-nameswrite has been updated via 49732834154631c8a0d30cd3c0cf1d5809fae98d (commit) from d0ddba867e31c2bfc2e46f08ae696df1f0247590 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 49732834154631c8a0d30cd3c0cf1d5809fae98d Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed May 24 09:37:53 2017 +0200 . ----------------------------------------------------------------------- Summary of changes: binutils/dwarf.c | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) First 500 lines of diff: diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 7d4a810..cd8c015 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -7704,8 +7704,9 @@ display_debug_names (struct dwarf_section *section, void *file) printf (" %02x", uc); } putchar ('\n'); + putchar ('\n'); - printf (_("\nCU table:\n")); + printf (_("CU table:\n")); for (i = 0; i < comp_unit_count; i++) { uint64_t cu_offset; @@ -7713,8 +7714,9 @@ display_debug_names (struct dwarf_section *section, void *file) SAFE_BYTE_GET_AND_INC (cu_offset, hdrptr, offset_size, unit_end); printf (_("[%3u] 0x%lx\n"), i, (unsigned long) cu_offset); } + putchar ('\n'); - printf (_("\nTU table:\n")); + printf (_("TU table:\n")); for (i = 0; i < local_type_unit_count; i++) { uint64_t tu_offset; @@ -7722,8 +7724,9 @@ display_debug_names (struct dwarf_section *section, void *file) SAFE_BYTE_GET_AND_INC (tu_offset, hdrptr, offset_size, unit_end); printf (_("[%3u] 0x%lx\n"), i, (unsigned long) tu_offset); } + putchar ('\n'); - printf (_("\nForeign TU table:\n")); + printf (_("Foreign TU table:\n")); for (i = 0; i < foreign_type_unit_count; i++) { uint64_t signature; @@ -7733,6 +7736,7 @@ display_debug_names (struct dwarf_section *section, void *file) print_dwarf_vma (signature, 8); putchar ('\n'); } + putchar ('\n'); const uint32_t *const hash_table_buckets = (uint32_t *) hdrptr; hdrptr += bucket_count * sizeof (uint32_t); @@ -7765,11 +7769,11 @@ display_debug_names (struct dwarf_section *section, void *file) if (bucket != 0) ++buckets_filled; } - printf (_("Filled %zu of %lu buckets.\n"), buckets_filled, + printf (_("Used %zu of %lu buckets.\n"), buckets_filled, (unsigned long) bucket_count); uint32_t hash_prev; - size_t clash_count = 0; + size_t hash_clash_count = 0; size_t longest_clash = 0; size_t this_length; size_t hashi; @@ -7777,19 +7781,23 @@ display_debug_names (struct dwarf_section *section, void *file) { const uint32_t hash_this = hash_table_hashes[hashi]; - if (hashi > 0 && hash_prev == hash_this) + if (hashi > 0) { - ++clash_count; - ++this_length; - longest_clash = MAX (longest_clash, this_length); + if (hash_prev % bucket_count == hash_this % bucket_count) + { + ++hash_clash_count; + ++this_length; + longest_clash = MAX (longest_clash, this_length); + } + else + this_length = 0; } - else - this_length = 0; hash_prev = hash_this; } - printf (_("Out of %lu names there are %zu clashes " - "(longest of %zu entries).\n"), - (unsigned long) name_count, clash_count, longest_clash); + printf (_("Out of %lu items there are %zu bucket clashes" + " (longest of %zu entries).\n"), + (unsigned long) name_count, hash_clash_count, longest_clash); + assert (name_count == buckets_filled + hash_clash_count); struct abbrev_lookup_entry { hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2017-05-24 7:39 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-05-24 7:39 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2017-05-24 7:55 jkratoch 2017-05-21 17:30 jkratoch 2017-05-15 14:49 jkratoch 2017-05-07 20:21 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170524073813.38738.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).