about summary refs log tree commit diff
path: root/src/rt/rust_internal.h
AgeCommit message (Collapse)AuthorLines
2011-12-14get basic code generation working, clone type descs for lambda[send]Niko Matsakis-0/+2
2011-12-01rt: Move RED_ZONE_SIZE to rust_task.cppBrian Anderson-9/+0
2011-11-29rt: Fix i386/morestack.S for static linkingBrian Anderson-1/+1
2011-11-28rt: Make 64-bit __morestack grow and shrink properlyBrian Anderson-1/+7
2011-11-22rt: Make __morestack (without unwinding) work on 32-bit linuxBrian Anderson-0/+3
2011-11-11rt: Remove rust_chanBrian Anderson-2/+0
2011-11-10rt: Remove rust_token. UnusedBrian Anderson-1/+0
2011-11-08Make task_sleep an intrinsic.Brian Anderson-3/+0
2011-11-02hack around on makefiles trying to get a 64 bit buildNiko Matsakis-3/+3
right now there are many temporary hacks, search for NDM to find them
2011-10-20Get rid of taskpointer-passing throughout the compilerMarijn Haverbeke-2/+2
Only intrinsics still take a dummy taskptr. We'll have to do some makefile stunts to snapshot a version without taskptrs-in-intrinsics. Issue #466
2011-10-20Do not pass taskpointers to "rust" native functionsMarijn Haverbeke-1/+1
Issue #466
2011-10-03rt: Make the builtins no longer take an explicit task parameterPatrick Walton-1/+1
2011-09-23rt: Add a RUST_TRACK_ORIGINS debug flag to help track down memory corruptionPatrick Walton-6/+0
2011-09-22Remove is_stateful flag from tydesc. Closes #136Brian Anderson-1/+1
2011-09-11Use a unique exit status when the runtime fails normallyBrian Anderson-0/+3
Check for it in run-fail tests
2011-09-02Eliminate const_refcount. Issue #855Brian Anderson-7/+0
2011-09-01Back out copy-glueMarijn Haverbeke-3/+1
This wasn't a good idea after all.
2011-08-25rustc: Add an extra flag to object tydescs so that shapes know how to find ↵Patrick Walton-1/+2
the captured subtydescs
2011-08-24Revert "Back out copy-glue"Marijn Haverbeke-1/+3
This reverts commit 629ee94a0b360e2df1a1bbf7bf61ef346adf36ad.
2011-08-24Back out copy-glueMarijn Haverbeke-3/+1
This wasn't a good idea after all.
2011-08-22Add skeleton of copy glue that actually copiesMarijn Haverbeke-1/+3
2011-08-22Rename copy_glue back to take_glueMarijn Haverbeke-1/+1
2011-08-18rt: Remove rust_alarm dead codePatrick Walton-16/+0
2011-08-18Remove rc_base. Closes #603.Michael Sullivan-10/+2
2011-08-16New channel-based task status notifications.Eric Holk-1/+6
2011-08-16Removed trans_comm.rs from the compiler. Updating aio/sio to work with the ↵Eric Holk-0/+1
new chan and port system, started on a networking module for the standard library.
2011-08-15Reducing the chances for race conditions in join.Eric Holk-1/+4
2011-08-15Working on more spawn test cases.Eric Holk-4/+3
2011-08-15First step towards port handles.Eric Holk-0/+1
2011-08-08Introduced task handles.unknown-0/+2
This is the new way to refer to tasks in rust-land. Currently all they do is serve as a key to look up the old rust_task structure. Ideally they won't be ref counted, but baby steps.
2011-08-05Atomic ref counting for chans.Eric Holk-0/+7
2011-08-03rt: Stub shape glue and implement shape::print and shape::size_of.Patrick Walton-0/+7
2011-08-01Adding an intrinsic for recv.Eric Holk-0/+3
2011-07-29Removing proxies and message queues.Eric Holk-2/+0
2011-07-28Do all runtime calls to getenv at initializationBrian Anderson-0/+1
getenv is not threadsafe and (maybe as a result) it's randomly crashing with CFLAGS=-g and RUST_THREADS=32. Calls from rust code are still on their own.
2011-07-21Lots of work on memory tracking and channels.Eric Holk-5/+43
We're trying to get closer to doing correct move semantics for channel operations. This involves a lot of cleanup (such as removing the unused sched parameter from rust_vec constructor) and making circular_buffer kernel_owned. Added tagging for memory allocations. This means we give a string tag to everything we allocate. If we leak something and TRACK_ALLOCATIONS is enabled, then it's much easier now to tell exactly what is leaking.
2011-07-13Fix compile-command lines in rt.Graydon Hoare-1/+1
2011-07-07Tightened up the scoping for our various new operators, which shouldEric Holk-0/+10
make it harder to use the wrong one.
2011-07-01Add macro for refcounting runtime structures.Rob Arnold-11/+10
The macro with the extra dtor parameter is intended for structures like rust_chan which may not necessarily delete themselves when the ref count becomes 0. This functionality will be used in an upcoming changeset.
2011-06-28rustc: Rename take glue to copy gluePatrick Walton-1/+1
2011-06-28Resurrecting the runtime unit tests, and modifying them so they compile ↵Eric Holk-0/+4
under the latest refactoring changes.
2011-06-28Renamed what's left of rust_dom to rust_schedulerEric Holk-4/+4
2011-06-28Removed dom_owned, splitting things between task_owned and kernel_owned. Had ↵Eric Holk-36/+5
to re-xfail a few tests brson recently un-xfailed.
2011-06-28Removing runtime tests. The runtime is tested well enough by the standard ↵Eric Holk-4/+0
library tests, so we might as well have less code to fix during refactoring.
2011-06-14Make tydesc glue functions use cdecl.Michael Sullivan-5/+5
2011-06-14Make type_desc fields have useful types and better names. Add in cmp_glue.Michael Sullivan-6/+14
2011-06-13This is the mega-ucontext commit. It replaces the task switching mechanism ↵Eric Holk-2/+3
with a new one inspired by ucontext. It works under Linux, OS X and Windows, and is Valgrind clean on Linux and OS X (provided the runtime is built with gcc). This commit also moves yield and join to the standard library, as requested in #42. Join is currently a no-op though.
2011-05-26More delicious dead code removal from runtime, upcalls.Graydon Hoare-130/+0
2011-05-25Dead code.Rafael Ávila de Espíndola-1/+1
2011-05-25Dead code.Rafael Ávila de Espíndola-69/+0