You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had miri report a leak in my code and after searching for it for a while, I believe it is a false positive. I've created a reproducer which should demonstrate it. The allocated memory is still reachable through the AtomicPtr, but miri doesn't see it.
use std::sync::atomic::{AtomicPtr,Ordering};use std::ptr;staticX:AtomicPtr<usize> = AtomicPtr::new(ptr::null_mut());fnmain(){X.store(Box::into_raw(Box::new(42usize)),Ordering::Relaxed);}
I think it might be somewhat similar to #1318 (I suspect the AtomicPtr might be considered usize internally).
The text was updated successfully, but these errors were encountered:
Hello
I had miri report a leak in my code and after searching for it for a while, I believe it is a false positive. I've created a reproducer which should demonstrate it. The allocated memory is still reachable through the AtomicPtr, but miri doesn't see it.
I think it might be somewhat similar to #1318 (I suspect the AtomicPtr might be considered usize internally).
The text was updated successfully, but these errors were encountered: