Brian Anderson
5402786f94
std: More TLS micro-optimization
2013-08-24 15:45:21 -07:00
Steven Fackler
e173a96be0
Add OwnedStr::into_bytes
...
My primary use case here is sending strings across the wire where the
intermediate storage is a byte array. The new method ends up avoiding a
copy.
2013-08-24 17:37:56 -04:00
Alex Crichton
eb836dd61e
Settle on the format/write/print family of names
2013-08-24 12:48:10 -07:00
Alex Crichton
39207a358b
Remove ifmt hax and implement fprintf
2013-08-24 12:48:10 -07:00
bors
c643f1d39c
auto merge of #8732 : kballard/rust/str-truncate, r=thestinger
2013-08-24 05:51:21 -07:00
bors
db5615ddd5
auto merge of #8725 : bblum/rust/docs, r=graydon
...
This documents how to use trait bounds in a (hopefully) user-friendly way, in the containers tutorial, and also documents the task watching implementation for runtime developers in kill.rs.
r anybody
2013-08-24 04:41:24 -07:00
Kevin Ballard
6b4ceff610
Add new function str.truncate()
2013-08-23 22:31:06 -07:00
Brian Anderson
468d023fe9
std: Convert some assert!s to rtassert!
2013-08-23 21:19:59 -07:00
Brian Anderson
30a7a5b8fa
Define cfg(rtopt) when optimizing. Turn off runtime sanity checks
...
Naturally, and sadly, turning off sanity checks in the runtime is
a noticable performance win. The particular test I'm running goes from
~1.5 s to ~1.3s.
Sanity checks are turned *on* when not optimizing, or when cfg
includes `rtdebug` or `rtassert`.
2013-08-23 21:19:59 -07:00
Brian Anderson
4c75d36d0e
std: Reduce TLS access
2013-08-23 21:19:59 -07:00
bors
c96b1d89c4
auto merge of #8716 : andrew-d/rust/andrew-fix-warnings, r=alexcrichton
...
Small, but whatever 🎱
2013-08-23 20:56:27 -07:00
bors
f9979247d1
auto merge of #8705 : brson/rust/lesscxx, r=graydon
2013-08-23 18:41:30 -07:00
Brian Anderson
b72c43739d
rt: Remove old precise GC code
2013-08-23 18:38:59 -07:00
Brian Anderson
4541c6cfe3
rt: Remove exit_status helpers
2013-08-23 18:38:59 -07:00
Brian Anderson
e3419f9c45
rt: Memory regions are never synchronized now
2013-08-23 18:38:59 -07:00
Ben Blum
d468b7c0bf
Document the task watching / exit code propagation implementation.
2013-08-23 19:55:03 -04:00
Daniel Micay
180e235d3d
fix performance regression from invalid IR
...
Monomorphize's normalization results in a 2% decrease in non-optimized
code size for libstd, so there's a negligible cost to removing it. This
also fixes several visit glue bugs because normalize wasn't considering
the differences in visit glue between types.
Closes #8720
2013-08-23 19:23:54 -04:00
Brian Anderson
4c5f62539b
Fix some vector function failure tests. Closes #8698
2013-08-23 14:49:17 -07:00
Andrew Dunham
347943640e
Fix two small warnings
2013-08-23 17:26:52 -04:00
Steven Fackler
d6eee6a7d2
Rename {Reader,Writer}ByteConversions methods
...
The method names in std::rt::io::extensions::WriterByteConversions are
the same as those in std::io::WriterUtils and a resolve error causes
rustc to fail after trying to find an impl of io::Writer instead of
trying to look for rt::io::Writer as well.
Same goes for ReaderByteConversions.
2013-08-23 10:53:29 -07:00
bors
4edf3758d1
auto merge of #8691 : anasazi/rust/fix-timer-interface, r=brson
...
Resolves #8687 .
2013-08-23 05:16:21 -07:00
bors
f5018c5a4c
auto merge of #8686 : kmcallister/rust/doc, r=catamorphism
2013-08-23 04:01:21 -07:00
bors
db55cd92de
auto merge of #8681 : mrordinaire/rust/remove-set_args, r=brson
2013-08-23 01:31:26 -07:00
bors
5e5e2c71e4
auto merge of #8677 : bblum/rust/scratch, r=alexcrichton
...
r anybody; there isn't anything complicated here
2013-08-23 00:16:28 -07:00
bors
0688bde47f
auto merge of #8671 : kballard/rust/range_inclusive-size-hint, r=thestinger
...
r? @thestinger
2013-08-22 22:31:27 -07:00
bors
9e1e152091
auto merge of #8596 : vadimcn/rust/master, r=alexcrichton
...
This resolves issue #908 .
Notable changes:
- On Windows, LLVM integrated assembler emits bad stack unwind tables when segmented stacks are enabled. However, unwind info directives in the assembly output are correct, so we generate assembly first and then run it through an external assembler, just like it is already done for Android builds.
- Linker is invoked via "g++" command instead of "gcc": g++ passes the appropriate magic parameters to the linker, which ensure correct registration of stack unwind tables in dynamic libraries.
2013-08-22 21:06:25 -07:00
Vadim Chugunov
651f38258d
Disabled broken tests in std::vec.
2013-08-22 20:02:20 -07:00
Vadim Chugunov
12ecdb6381
Enabled unit tests in std and extra.
2013-08-22 20:02:20 -07:00
Do Nhat Minh
77df8b809a
removed os::set_args, closing #8325
...
removed pub on real_args, changed test to use args
2013-08-23 10:26:37 +08:00
Jeff Olson
b7cbd8a8fd
fix 32bit mac build error
2013-08-22 17:26:02 -07:00
Jeff Olson
744c46225e
make check appeasement
2013-08-22 16:33:59 -07:00
Jeff Olson
8d997fba1a
std: put FileMode/Access->whence-mask in uvio, open/unlink as fns in file::
2013-08-22 16:31:58 -07:00
Jeff Olson
6311856bf4
std: slight refactor on UvFilestream seek behavior, pre-seek-refactor
2013-08-22 16:31:58 -07:00
Jeff Olson
94b84a851c
std: all of the calls in rt::uv::file take a &Loop
2013-08-22 16:31:58 -07:00
Jeff Olson
f01e265357
std: moved static file actions (open,unlink) to FsRequest
2013-08-22 16:31:58 -07:00
Jeff Olson
f85d3b3ec1
std: reform fn sigs of FileDescriptor methods (better result signalling)
2013-08-22 16:31:58 -07:00
Jeff Olson
429b5f88f9
std: rename tmp file paths to go into ./tmp folder in builddir
2013-08-22 16:31:58 -07:00
Jeff Olson
13eb259a09
change FileDescriptor instance methods to use &mut self
2013-08-22 16:31:58 -07:00
Jeff Olson
ece709f172
std: more seek tests
2013-08-22 16:31:58 -07:00
Jeff Olson
320ccbeb53
std: naive stdio print test in uvio
2013-08-22 16:31:58 -07:00
Jeff Olson
10ff5355b3
std: UvFileStream implements HomingIO + .home_for_io() wrapper usage
2013-08-22 16:31:58 -07:00
Jeff Olson
c3a819b01c
std: writing to stdout only works when using -1 offset..
2013-08-22 16:31:58 -07:00
Jeff Olson
0e9964189d
std: lint appeasement for unused param in condition handler
2013-08-22 16:31:58 -07:00
Jeff Olson
05c8cc70c9
std: rework file io.. support [p]read,[p]write, impl seek/tell + more tests
2013-08-22 16:31:57 -07:00
Jeff Olson
48d6761028
std: adding #[fixed_stack_segment] as needed in new uvll calls
2013-08-22 16:31:57 -07:00
Jeff Olson
4015b4a9b4
std: add FileStream::unlink + more tests
2013-08-22 16:31:57 -07:00
Jeff Olson
f6d897d7d9
std: rt::io::file::FileStream fleshed out.. needs more work.. see extended
...
- change all uses of Path in fn args to &P
- FileStream.read assumptions were wrong (libuv file io is non-positional)
- the above will mean that we "own" Seek impl info .. should probably
push it in UvFileDescriptor..
- needs more tests
2013-08-22 16:31:57 -07:00
Jeff Olson
47f0e91689
std: CRUD file io bindings in uvio, fs_open()/unlink() in IoFactory + test
2013-08-22 16:31:57 -07:00
Jeff Olson
f60bd75f4d
std: remove fcntl const bindings + making valgrind clean w/ no owned vecs
2013-08-22 16:31:57 -07:00
Jeff Olson
e0a80ee332
std: support async/threadpool & sync paths in uv_fs_* calls + add sync test
2013-08-22 16:31:57 -07:00