(&self, ptr: *mut u8, layout: std::alloc::Layout)
| 17 | |
| 18 | #[inline(always)] |
| 19 | fn check_alloc_failure(&self, ptr: *mut u8, layout: std::alloc::Layout) { |
| 20 | if ptr.is_null() && !self.alloc_failure.swap(true, std::sync::atomic::Ordering::AcqRel) { |
| 21 | self.print_alloc_failure(layout); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | #[cold] |
| 26 | #[inline(never)] |
no test coverage detected