diff --git a/cranelift/codegen/shared/src/constant_hash.rs b/cranelift/codegen/shared/src/constant_hash.rs index 668dc9f657..e16d58f5bc 100644 --- a/cranelift/codegen/shared/src/constant_hash.rs +++ b/cranelift/codegen/shared/src/constant_hash.rs @@ -30,7 +30,8 @@ pub fn generate_table<'cont, T, I: iter::Iterator, H: Fn(&T) -> hash_function: H, ) -> Vec> { let size = (1.20 * num_items as f64) as usize; - // TODO do we really need the multiply by two here? + + // Probing code's stop condition relies on the table having one vacant entry at least. let size = if size.is_power_of_two() { size * 2 } else {