(&self, i: usize)
| 80 | assert!(p != libc::MAP_FAILED, "HugeVec mmap failed"); |
| 81 | // Advisory only: failure (old kernel, THP disabled) is harmless. |
| 82 | libc::madvise(p, bytes, libc::MADV_HUGEPAGE); |
| 83 | p.cast::<T>() |
| 84 | }; |
| 85 | Self { ptr, cap, len: 0 } |
| 86 | } |
| 87 |
no outgoing calls
no test coverage detected