Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: src/store-buffer.cc

Issue 9085021: Alter the second hash used in StoreBuffer::Compact. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/store-buffer.cc
diff --git a/src/store-buffer.cc b/src/store-buffer.cc
index c0315f27a8ed2482a468532227ff5c17723e4580..87189f49aeec7b60a4c99b17c16e135ed794e3fb 100644
--- a/src/store-buffer.cc
+++ b/src/store-buffer.cc
@@ -688,9 +688,9 @@ void StoreBuffer::Compact() {
int hash1 =
((int_addr ^ (int_addr >> kHashMapLengthLog2)) & (kHashMapLength - 1));
if (hash_map_1_[hash1] == int_addr) continue;
- int hash2 =
- ((int_addr - (int_addr >> kHashMapLengthLog2)) & (kHashMapLength - 1));
+ uintptr_t hash2 = (int_addr - (int_addr >> kHashMapLengthLog2));
hash2 ^= hash2 >> (kHashMapLengthLog2 * 2);
+ hash2 &= (kHashMapLength - 1);
if (hash_map_2_[hash2] == int_addr) continue;
if (hash_map_1_[hash1] == 0) {
hash_map_1_[hash1] = int_addr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698