projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b347c
)
From Craig Silverstein: implement --hash-bucket-empty-fraction for real.
author
Ian Lance Taylor
<iant@google.com>
Fri, 7 Mar 2008 16:27:33 +0000
(16:27 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Fri, 7 Mar 2008 16:27:33 +0000
(16:27 +0000)
gold/dynobj.cc
patch
|
blob
|
history
diff --git
a/gold/dynobj.cc
b/gold/dynobj.cc
index 6c0a4b28a56811e7bfac37daf9b91df3054380f0..558129837e5629a5e8333e859647b085b82c8088 100644
(file)
--- a/
gold/dynobj.cc
+++ b/
gold/dynobj.cc
@@
-698,9
+698,11
@@
Dynobj::compute_bucket_count(const std::vector<uint32_t>& hashcodes,
unsigned int symcount = hashcodes.size();
unsigned int ret = 1;
+ const double full_fraction
+ = 1.0 - parameters->options().hash_bucket_empty_fraction();
for (int i = 0; i < buckets_count; ++i)
{
- if (symcount < buckets[i])
+ if (symcount < buckets[i]
* full_fraction
)
break;
ret = buckets[i];
}