(&self, vm: &VirtualMachine)
| 645 | |
| 646 | #[cold] |
| 647 | fn _compute_hash(&self, vm: &VirtualMachine) -> hash::PyHash { |
| 648 | let hash_val = vm.state.hash_secret.hash_bytes(self.as_bytes()); |
| 649 | debug_assert_ne!(hash_val, hash::SENTINEL); |
| 650 | // spell-checker:ignore cmpxchg |
| 651 | // like with char_len, we don't need a cmpxchg loop, since it'll always be the same value |
| 652 | self.hash.store(hash_val, atomic::Ordering::Relaxed); |
| 653 | hash_val |
| 654 | } |
| 655 | |
| 656 | #[inline] |
| 657 | pub fn byte_len(&self) -> usize { |
no test coverage detected