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
letmut sig = SyncSignal::new(&mut data as*mutT, std::thread::current());
Here data is taken pointer from, then forgotten. However, data is on stack, so it can be corrupted when being read again. Do you have justification for this?
In Golang this is safe, as Golang performs escape analysis, and any object taken references from and escapes are actually allocated to heap with GC. But in Rust it is not.
The text was updated successfully, but these errors were encountered:
kanal/src/lib.rs
Line 191 in f3c2bf1
Here
data
is taken pointer from, then forgotten. However,data
is on stack, so it can be corrupted when being read again. Do you have justification for this?In Golang this is safe, as Golang performs escape analysis, and any object taken references from and escapes are actually allocated to heap with GC. But in Rust it is not.
The text was updated successfully, but these errors were encountered: