We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fetch_max
On 2019-09-24 @recmo wrote in 0ed4308 “Refactor, use Relax”:
0ed4308
Use fetch_max instead See https://doc.rust-lang.org/std/sync/atomic/struct.AtomicUsize.html#method.fetch_max This is pending rust-lang/rust#48655
System.dealloc(ptr, layout); let _ = self.allocated.fetch_sub(layout.size(), Relaxed); } } // TODO: Use `fetch_max` instead // See https://doc.rust-lang.org/std/sync/atomic/struct.AtomicUsize.html#method.fetch_max // This is pending https://github.com/rust-lang/rust/issues/48655 fn fetch_max(atom: &AtomicUsize, value: usize) -> usize { let mut prev = atom.load(Relaxed); while prev < value { match atom.compare_exchange_weak(prev, value, Relaxed, Relaxed) { Ok(_) => return value,
From utils/logging-allocator/src/logging_allocator.rs:125
utils/logging-allocator/src/logging_allocator.rs:125
The text was updated successfully, but these errors were encountered:
recmo
No branches or pull requests
On 2019-09-24 @recmo wrote in
0ed4308
“Refactor, use Relax”:Use
fetch_max
insteadSee https://doc.rust-lang.org/std/sync/atomic/struct.AtomicUsize.html#method.fetch_max
This is pending rust-lang/rust#48655
From
utils/logging-allocator/src/logging_allocator.rs:125
The text was updated successfully, but these errors were encountered: