rust/src/libstd
Alex Crichton bea7862d94 Correctly reset steals when hitting MAX_STEALS
The previous code erroneously assumed that 'steals > cnt' was always true, but
that was a false assumption. The code was altered to decrement steals to a
minimum of 0 instead of taking all of cnt into account.

I didn't include the exact test from #12295 because it could run for quite
awhile, and instead set the threshold for MAX_STEALS to much lower during
testing. I found that this triggered the old bug quite frequently when running
without this fix.

Closes #12295
2014-02-15 15:54:29 -08:00
..
comm Correctly reset steals when hitting MAX_STEALS 2014-02-15 15:54:29 -08:00
fmt impl fmt::Pointer for &T and &mut T 2014-02-15 12:11:50 -05:00
io auto merge of #12282 : cmr/rust/cleanup-ptr, r=huonw 2014-02-15 09:36:26 -08:00
num Silence some unused import warnings 2014-02-15 15:53:52 -08:00
path Add c_str::CString.as_bytes_no_nul() 2014-02-14 21:23:37 -08:00
rand
rt auto merge of #12272 : alexcrichton/rust/snapshot, r=kballard 2014-02-15 14:06:26 -08:00
sync std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
unstable Remove two allocations from spawning a green task 2014-02-13 20:31:17 -08:00
any.rs Add some missing Show implementations in libstd 2014-02-13 12:54:01 -08:00
ascii.rs Add some missing Show implementations in libstd 2014-02-13 12:54:01 -08:00
bool.rs
c_str.rs Add c_str::CString.as_bytes_no_nul() 2014-02-14 21:23:37 -08:00
cast.rs std: Stop parameterizing some memcpy functions over RawPtr 2014-02-09 16:23:10 -08:00
cell.rs
char.rs
cleanup.rs Register new snapshots 2014-02-13 12:54:17 -08:00
clone.rs
cmp.rs Removed num::Orderable 2014-02-13 20:12:59 -05:00
container.rs
default.rs
from_str.rs
gc.rs
hash.rs
hashmap.rs Register new snapshots 2014-02-14 22:55:20 -08:00
iter.rs Fix broken link to the container guide 2014-02-11 14:38:36 +00:00
kinds.rs
lib.rs extern mod => extern crate 2014-02-14 22:55:21 -08:00
libc.rs
local_data.rs Move replace and swap to std::mem. Get rid of std::util 2014-02-11 05:21:35 +08:00
logging.rs Move replace and swap to std::mem. Get rid of std::util 2014-02-11 05:21:35 +08:00
macros.rs Lift $dst outside the closure in write! 2014-02-13 13:05:48 -08:00
managed.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
mem.rs return value/use extra::test::black_box in benchmarks 2014-02-14 07:45:34 -08:00
ops.rs
option.rs Move replace and swap to std::mem. Get rid of std::util 2014-02-11 05:21:35 +08:00
os.rs Use str::from_utf8_lossy() for os::env() and friends 2014-02-14 21:23:37 -08:00
owned.rs
prelude.rs Removed num::Orderable 2014-02-13 20:12:59 -05:00
ptr.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
rc.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
reference.rs
reflect.rs Register new snapshots 2014-02-13 12:54:17 -08:00
repr.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
result.rs
rtdeps.rs Invoke gcc with -nodefaultlibs 2014-02-14 08:07:46 -08:00
run.rs Rewrite channels yet again for upgradeability 2014-02-11 16:32:00 -08:00
str.rs return value/use extra::test::black_box in benchmarks 2014-02-14 07:45:34 -08:00
task.rs Silence some unused import warnings 2014-02-15 15:53:52 -08:00
to_bytes.rs
to_str.rs
trie.rs Move replace and swap to std::mem. Get rid of std::util 2014-02-11 05:21:35 +08:00
tuple.rs
unicode.rs
unit.rs Add some missing Show implementations in libstd 2014-02-13 12:54:01 -08:00
vec_ng.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
vec.rs auto merge of #12272 : alexcrichton/rust/snapshot, r=kballard 2014-02-15 14:06:26 -08:00