We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeef677 commit bf25cc6Copy full SHA for bf25cc6
1 file changed
src/comp_cache.hpp
@@ -121,6 +121,13 @@ class CompCache final: public CompCacheIF {
121
if (out_node != nullptr) *out_node = (act_id < compile_nodes.size()) ? compile_nodes[act_id] : -1;
122
return true;
123
}
124
+ // Hashkey matched but the (exact, content-comparing) equals() rejected it, oops
125
+ if (entry(act_id).get_hashkey() == comp.get_hashkey()) {
126
+ verb_print(1, "WARNING: hash collision -- cache entry ID " << act_id
127
+ << " has the same hashkey (0x" << std::hex << comp.get_hashkey() << std::dec
128
+ << ") as the looked-up component but DIFFERENT content."
129
+ << " Under --prob 1 this would have been a wrong cache hit.");
130
+ }
131
act_id = entry(act_id).next_bucket_element();
132
133
return false;
0 commit comments