about summary refs log tree commit diff
path: root/src/libstd/rt
AgeCommit message (Collapse)AuthorLines
2013-08-18Delete std::rt::io::net::httpSteven Fackler-30/+0
It's an empty stub and as one of the comments notes, doesn't belong in libstd.
2013-08-18auto merge of #8560 : kballard/rust/reserve-yield, r=pcwaltonbors-5/+5
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-18auto merge of #8551 : huonw/rust/speling, r=alexcrichtonbors-22/+21
(This doesn't add/remove `u`s or change `ize` to `ise`, or anything like that.)
2013-08-18More spelling corrections.Huon Wilson-2/+2
2013-08-16A round of code cleaning for the primary scheduler code. Comments have been ↵toddaaro-275/+201
updated, a minor amount of support type restructing has happened, methods have been reordered, and some duplicate code has been purged.
2013-08-16Moved the logic for a pausible idle callback into a new type - ↵toddaaro-96/+103
PausibleIdleCallback and placed the appropriate signatures in rtio and implementation into uvio.
2013-08-16std::rt: Fix a race in UvRemoteCallback's dtor that misses callbacksBrian Anderson-7/+74
Full description in comments.
2013-08-16std::rt: Touch up idle logicBrian Anderson-16/+36
2013-08-16an attempt at a singleton pausible idle callback for each scheduler. suffers ↵toddaaro-19/+83
from nondeterministic deadlock and also pending scheduler messages on scheduler shutdown.
2013-08-16Reserve 'yield' keywordKevin Ballard-5/+5
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-16doc: convert remaining uses of core:: to std::.Huon Wilson-14/+14
2013-08-16doc: correct spelling in documentation.Huon Wilson-6/+5
2013-08-15Add ToCStr method .with_c_str()Kevin Ballard-8/+8
.with_c_str() is a replacement for the old .as_c_str(), to avoid unnecessary boilerplate. Replace all usages of .to_c_str().with_ref() with .with_c_str().
2013-08-13auto merge of #8475 : kmcallister/rust/stack_segment, r=brson,brsonbors-2/+2
Servo needs to tell SpiderMonkey about the stack bounds. r? @brson
2013-08-13Make rt::stack publicKeegan McAllister-1/+1
Fixes #8478.
2013-08-13auto merge of #8423 : alexcrichton/rust/less-priv-again, r=bstriebors-8/+8
Closes #5495
2013-08-13auto merge of #8411 : bblum/rust/assorted-fixes, r=brsonbors-322/+32
Each commit is pretty much what it says on the tin. r anybody.
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-8/+8
Closes #5495
2013-08-12std: Re-optimize tls access on local allocation pathBrian Anderson-9/+17
I did this once but acciddentally undid it in a later patch.
2013-08-12rt::task: Make current_stack_segment publicKeegan McAllister-1/+1
Servo needs to tell SpiderMonkey about the stack bounds.
2013-08-12Clean up transitionary glue in task/spawn.rs. Don't hold kill-little-lock ↵Ben Blum-8/+6
for O(n) time, cf #3100, and optimize out several unneeded clone()s.
2013-08-12Fix select() in light of the deschedule...and then race. Close #8347.Ben Blum-1/+3
2013-08-12Reorganise Select traits to not expose internal runtime types. Close #5160. ↵Ben Blum-313/+23
Pending #8215.
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-1/+1
cc #5898
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-2/+1
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-6/+6
cc #7887
2013-08-09auto merge of #8296 : erickt/rust/remove-str-trailing-nulls, r=ericktbors-23/+25
This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null
2013-08-09Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-99/+424
remove-str-trailing-nulls
2013-08-09auto merge of #8387 : brson/rust/nooldrt, r=brsonbors-154/+17
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-154/+17
2013-08-09auto merge of #8415 : brson/rust/newrt-local-heap-perf, r=pcwalton,brsonbors-28/+49
Mostly optimizing TLS accesses to bring local heap allocation performance closer to that of oldsched. It's not completely at parity but removing the branches involved in supporting oldsched and optimizing pthread_get/setspecific to instead use our dedicated TCB slot will probably make up for it.
2013-08-09Fix Ipv6Addr to_str for ::1:x.x.x.x addressesStepan Koltsov-1/+8
Reported by luqmana@
2013-08-09std: Fix perf of local allocations in newschedBrian Anderson-28/+49
Mostly optimizing TLS accesses to bring local heap allocation performance closer to that of oldsched. It's not completely at parity but removing the branches involved in supporting oldsched and optimizing pthread_get/setspecific to instead use our dedicated TCB slot will probably make up for it.
2013-08-08Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-124/+281
remove-str-trailing-nulls
2013-08-08auto merge of #8336 : stepancheg/rust/socket-addr-from-str, r=brsonbors-70/+367
FromStr implemented from scratch. It is overengineered a bit, however. Old implementation handles errors by fail!()-ing. And it has bugs, like it accepts `127.0.0.1::127.0.0.1` as IPv6 address, and does not handle all ipv4-in-ipv6 schemes. So I decided to implement parser from scratch.
2013-08-08auto merge of #8356 : toddaaro/rust/ws, r=brsonbors-62/+156
This pull request converts the scheduler from a naive shared queue scheduler to a naive workstealing scheduler. The deque is still a queue inside a lock, but there is still a substantial performance gain. Fiddling with the messaging benchmark I got a ~10x speedup and observed massively reduced memory usage. There are still *many* locations for optimization, but based on my experience so far it is a clear performance win as it is now.
2013-08-08auto merge of #8385 : cmr/rust/big-rollup, r=alexcrichtonbors-8/+28
This is a fairly large rollup, but I've tested everything locally, and none of it should be platform-specific. r=alexcrichton (bdfdbdd) r=brson (d803c18) r=alexcrichton (a5041d0) r=bstrie (317412a) r=alexcrichton (135c85e) r=thestinger (8805baa) r=pcwalton (0661178) r=cmr (9397fe0) r=cmr (caa4135) r=cmr (6a21d93) r=cmr (4dc3379) r=cmr (0aa5154) r=cmr (18be261) r=thestinger (f10be03)
2013-08-08Enabled workstealing in the scheduler. Previously we had one global work ↵toddaaro-62/+156
queue shared by each scheduler. Now there is a separate work queue for each scheduler, and work is "stolen" from other queues when it is exhausted locally.
2013-08-08auto merge of #8245 : alexcrichton/rust/fmt2, r=graydonbors-1/+1
This is a reopening of #8182, although this removes any abuse of the compiler internals. Now it's just a pure syntax extension (hard coded what the attribute names are).
2013-08-07(cleanup) Improve rtabort message for atomic-sleep.Ben Blum-1/+2
2013-08-07fix recv_ready for Port to take &self and not need to return a tuple. Close ↵Ben Blum-7/+26
#8192.
2013-08-07Add initial support for a new formatting syntaxAlex Crichton-1/+1
The new macro is available under the name ifmt! (only an intermediate name)
2013-08-07Disable linked failure testsBrian Anderson-0/+6
The implementation currently contains a race that leads to segfaults.
2013-08-07std: Allow spawners to specify stack sizeBrian Anderson-38/+46
2013-08-07std::rt: Pull RUST_MIN_STACK from the environmentBrian Anderson-3/+32
2013-08-07std::rt: 2MB stacks againBrian Anderson-1/+1
2013-08-07std: removed option.take_map{,_default}Erick Tryzelaar-5/+5
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-6/+6
2013-08-07std: add result.map_move, result.map_err_moveErick Tryzelaar-2/+2
2013-08-06Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-19/+56
remove-str-trailing-nulls