Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use xxhash instead of gdb_hash for the internal hashmap for .gdb_index
Our ConcurrentMap uses linear probing to find unused hash table entry. It gives up if 128 consective slots are occupied, and the whole process dies with the "ConcurrentMap is full" error message. So our hash function's quality must be high. For .gdb_index, we used to use gdb_index() to compute keys for the ConcurrentMap. It turned out that the function's quality is poor, generating very similar output for short strings. This commit changes the hash function to xxhash. Fixes https://issues.chromium.org/issues/40276991#comment5
- Loading branch information