-
Notifications
You must be signed in to change notification settings - Fork 389
rustup; fix tests for new MIR optimization #1729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
d2731d8e9338d8fe844e19d3fbb39617753e65f4 | ||
09db05762b283bed62d4f92729cfee4646519833 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,6 @@ pub fn main() { | |
// 3. stack-deallocate | ||
unsafe { | ||
let j1 = spawn(move || { | ||
// Concurrent allocate the memory. | ||
// Uses relaxed semantics to not generate | ||
// a release sequence. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JCTyblaidd these comments seem to be wrong here; there is no allocation and also nothing |
||
let pointer = &*ptr.0; | ||
{ | ||
let mut stack_var = 0usize; | ||
|
@@ -38,6 +35,8 @@ pub fn main() { | |
|
||
sleep(Duration::from_millis(200)); | ||
|
||
// Now `stack_var` gets deallocated. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JCTyblaidd I think this is right, would be good to check. |
||
|
||
} //~ ERROR Data race detected between Deallocate on Thread(id = 1) and Read on Thread(id = 2) | ||
}); | ||
|
||
|
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.