about summary refs log tree commit diff
path: root/src/libcore/rt
AgeCommit message (Collapse)AuthorLines
2013-05-03Change borrow debugging so it is disabled by -ONiko Matsakis-2/+0
2013-05-01add an option to debug borrows (RUST_DEBUG_BORROW) so you canNiko Matsakis-2/+4
find out where the offending borrow occurred. This ... still needs some work.
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-245/+1002
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-30allover: numerous unused muts etcNiko Matsakis-2/+0
2013-04-30new borrow checker (mass squash)Niko Matsakis-1/+1
2013-04-30desnapshotNiko Matsakis-3/+0
2013-04-30adapt to snapshotNiko Matsakis-42/+0
2013-04-29test: Fix tests.Patrick Walton-11/+13
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-3/+3
2013-04-24Merge remote-tracking branch 'brson/io'Brian Anderson-245/+1001
Conflicts: src/libcore/rt/uvio.rs
2013-04-24core: Warning policeBrian Anderson-11/+3
2013-04-23TidyBrian Anderson-1/+1
2013-04-23core::rt: Add more I/O docsBrian Anderson-22/+153
2013-04-23Merge remote-tracking branch 'brson/io'Brian Anderson-228/+862
This also reverts some changes to TLS that were leaking memory. Conflicts: src/libcore/rt/uv/net.rs src/libcore/task/local_data_priv.rs src/libcore/unstable/lang.rs
2013-04-23Fixing some various warnings about unused importsAlex Crichton-1/+2
2013-04-23Removing more unnecessary unsafe blocks throughoutAlex Crichton-6/+4
2013-04-23core::rt: Tasks to not require an unwinderBrian Anderson-45/+69
A task without an unwinder will abort the process on failure. I'm using this in the runtime tests to guarantee that a call to `assert!` actually triggers some kind of failure (an abort) instead of silently doing nothing. This is essentially in lieu of a working linked failure implementation.
2013-04-23core, rustc: Warning policeTim Chevalier-3/+3
2013-04-22core::rt: Fix a use after free in uv 'write'Brian Anderson-12/+21
2013-04-22core::rt: Add unwinding to newsched tasksBrian Anderson-10/+117
2013-04-22core::rt: Add implementations of Reader, Writer, and Listener for OptionBrian Anderson-3/+174
These will make it easier to write I/O code without worrying about errors
2013-04-22core::rt: Move the definition of Listener to rt::ioBrian Anderson-34/+21
2013-04-22core::rt: Make I/O constructors return Option instead of ResultBrian Anderson-7/+7
For consistency, for all I/O calls, inspecting the error can be done with the io_error condition.
2013-04-22core::rt Wire up task-local storage to the new schedulerBrian Anderson-4/+61
2013-04-21core::rt: Add the local heap to newsched tasksBrian Anderson-2/+99
Reusing the existing boxed_region implementation from the runtime
2013-04-21core::rt: Add LocalServices for thread-local language servicesBrian Anderson-2/+70
Things like the GC heap and unwinding are desirable everywhere the language might be used, not just in tasks. All Rust code should have access to LocalServices.
2013-04-20core: remove unused 'mut' variablesAlex Crichton-3/+3
2013-04-20core::rt:: Implement Reader/Writer for MemReader/MemWriterBrian Anderson-7/+70
2013-04-20core: Speed up a test caseBrian Anderson-1/+1
2013-04-20core::rt: Listener constructors are called and return aBrian Anderson-3/+30
2013-04-20core::rt: Improve docs for run_in_newsched_task testing functionBrian Anderson-1/+2
2013-04-20core::rt: Add `next_test_ip4` for generating test addressesBrian Anderson-7/+14
2013-04-20core::rt: Fix a broken uvio testBrian Anderson-3/+20
2013-04-20core::rt: Don't directly create scheduler types in I/O testsBrian Anderson-53/+50
There are some better abstractions for this now
2013-04-20core::rt: Remove redundant copy of run_in_newsched_taskBrian Anderson-21/+0
2013-04-20core::rt: Unignore some networking testsBrian Anderson-2/+0
These should work now, I hope
2013-04-20core::rt: Use generated port numbers in testsBrian Anderson-48/+23
2013-04-20core::rt: Add a test mod and put run_in_newsched_task thereBrian Anderson-0/+33
2013-04-19core: clean up tests (mostly unused unsafe blocks)Alex Crichton-13/+11
2013-04-19core::rt: Just some poking at the I/O docsBrian Anderson-4/+21
2013-04-19wipBrian Anderson-12/+7
2013-04-19core::rt: Rename Closeable to Close, Seekable to Seek, blocking to nativeBrian Anderson-21/+21
2013-04-19TidyBrian Anderson-21/+21
2013-04-19core::rt: Simplify some scheduler operationsBrian Anderson-97/+13
2013-04-19core::rt: Add another context switching operation to the schedulerBrian Anderson-28/+89
`switch_running_tasks_and_then` does a context switch to another task then immediatly runs a closure.
2013-04-19core: More tweaks to the thread-local scheduler interfaceBrian Anderson-122/+124
2013-04-19core: Wire up `spawn` to the new schedulerBrian Anderson-0/+21
It will check which scheduler it is running under and create the correct type of task as appropriate. Most options aren't supported but basic spawning works.
2013-04-19core: Add rt::context for figuring out what runtime services are availableBrian Anderson-1/+110
Conflicts: src/libcore/rt/sched/mod.rs
2013-04-19core::rt: Declare large parts of the I/O APIBrian Anderson-30/+1539
2013-04-17auto merge of #5909 : brson/rust/rt4, r=graydonbors-449/+457
This is just a bunch of minor changes and simplifications to the structure of core::rt. It makes ownership of the ~Scheduler more strict (though it is still mutably aliased sometimes), turns the scheduler cleanup_jobs vector into just a single job, shunts the thread-local scheduler code off to its own file.