- 27 6月, 2013 40 次提交
-
-
由 Philipp Brüschweiler 提交于
Mostly just low-haning fruit, i.e. function arguments that were @ even though & would work just as well. Reduces librustc.so size by 200k when compiling without -O, by 100k when compiling with -O.
-
由 bors 提交于
add android dummy functions which does not exist in boinic. after #7257, some mman related functions are needed for android.
-
由 bors 提交于
-
由 bors 提交于
-
由 Corey Richardson 提交于
-
由 bors 提交于
... through yields This avoids the following pathological scenario that makes threadring OOM: 1) task calls C using fast_ffi, borrowing a big stack from the scheduler. 2) task returns from C and places the big stack on the task-local stack segment list 3) task calls further Rust functions that require growing the stack, and for this reuses the big stack 4) task yields, failing to return the big stack to the scheduler. 5) repeat 500+ times and OOM (reopening after incoming fallout. *do not r+*. broken)
-
由 bors 提交于
r? @nikomatsakis
-
由 Daniel Micay 提交于
`reverse(xs.mut_slice(a, b))` replaces `reverse_part(xs, a, b)`
-
由 Corey Richardson 提交于
-
由 Brian Anderson 提交于
-
由 Ramkumar Ramachandra 提交于
Both extra::treemap::TreeMap and extra::treemap::TreeSet have corresponding iterators TreeMapIterator and TreeSetIterator. Unfortunately, the tests and extra::serialize use the older .each. Update all the dependent code, and remove .each. Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
-
由 Nick Desaulniers 提交于
-
由 Corey Richardson 提交于
-
由 Ben Blum 提交于
-
由 Brian Anderson 提交于
This avoids the following pathological scenario that makes threadring OOM: 1) task calls C using fast_ffi, borrowing a big stack from the scheduler. 2) task returns from C and places the big stack on the task-local stack segment list 3) task calls further Rust functions that require growing the stack, and for this reuses the big stack 4) task yields, failing to return the big stack to the scheduler. 5) repeat 500+ times and OOM Conflicts: src/rt/rust_task.cpp
-
由 Ben Blum 提交于
-
由 Ben Blum 提交于
-
由 Ben Blum 提交于
-
由 Ben Blum 提交于
-
由 Ben Blum 提交于
-
由 Ben Blum 提交于
-
由 Ben Blum 提交于
Work-around 'static bound requirement in io::with_bytes_reader (note: does not fix #5723, interface still unsafe)
-
由 Corey Richardson 提交于
-
由 bors 提交于
-
由 Kevin Ballard 提交于
Add method .move_from() to MutableVector, which consumes another vector and moves elements into the receiver. Add new trait MutableCloneableVector with one method .copy_from(), which clones elements from another vector into the receiver.
-
由 Kevin Ballard 提交于
Add new trait vec::bytes::MutableByteVector which currently defines one method .set_memory().
-
由 Jed Estep 提交于
-
由 Jed Estep 提交于
-
由 Jed Estep 提交于
-
由 Jed Estep 提交于
-
由 Ramkumar Ramachandra 提交于
Remove PriorityQueue::each and replace it with PriorityQueue::iter, which ultimately calls into vec::VecIterator via PriorityQueueIterator. Implement iterator::Iterator for PriorityQueueIterator. Now you should be able to do: extern mod extra; let mut pq = extra::priority_queue::PriorityQueue::new(); pq.push(5); pq.push(6); pq.push(3); for pq.iter().advance |el| { println(fmt!("%d", *el)); } just like you iterate over vectors, hashmaps, hashsets etc. Note that the iteration order is arbitrary (as before with PriorityQueue::each), and _not_ the order you get when you pop() repeatedly. Add an in-file test to guard this. Reported-by: NDaniel Micay <danielmicay@gmail.com> Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
-
由 Tim Chevalier 提交于
Closes #2406
-
由 Philipp Brüschweiler 提交于
-
由 Philipp Brüschweiler 提交于
-
由 Alex Crichton 提交于
-
由 Brian Anderson 提交于
-
由 Kevin Ballard 提交于
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
-
由 Ben Blum 提交于
-
由 Ramkumar Ramachandra 提交于
So --remote can work. Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
-
由 bors 提交于
r?
-