Please sign in to comment.
use the right hashpower for the item_locks table
For some reason I can't understand, I was accessing item_locks via the main hash table's power level, then modulus'ed to the number of item locks. hashpower can change as the hash table grows, except it only ever changes while no item locks are being held (via the item_global_lock synchronization bits). The item_locks hashpower is static for the duration. So this isn't a safety issue, but instead just using the hash table wrong and doing an extra modulus. As an aside, this does improve benchmarks by a tiny bit.
- Loading branch information...