about summary refs log tree commit diff
path: root/src/rt/rust_internal.h
AgeCommit message (Collapse)AuthorLines
2012-04-03Refactor includes structure, getting rid of rust_internal.hJon Morton-183/+0
Many changes to code structure are included: - removed TIME_SLICE_IN_MS - removed sychronized_indexed_list - removed region_owned - kernel_owned move to kernel.h, task_owned moved to task.h - global configs moved to rust_globals.h - changed #pragma once to standard guard in rust_upcall.h - got rid of memory.h
2012-04-01remove rust_srvJon Morton-1/+0
2012-04-01replace assertion macros with plain assertsJon Morton-12/+0
2012-03-31rt: Rename rust_task_thread to rust_sched_loopBrian Anderson-2/+2
This class no longer represents a thread; it just schedules tasks.
2012-03-28Tidy up multiple declarations and STDC_FOO_MACROS guards in headers.Graydon Hoare-50/+1
2012-03-28Fix some gcc-4.4-isms, should build now on 4.1+.Graydon Hoare-0/+5
2012-03-18rt: Convert rust_task_list to a typedefBrian Anderson-2/+0
2012-03-16Get rid of rust_crate_cache in the runtimeMarijn Haverbeke-1/+0
We are no longer generating dynamic tydescs or dicts. Issue #1982
2012-03-05rt: Fix the atomic get_ref_count method to avoid racesBrian Anderson-5/+1
2012-03-05rt: Make rust_port_detach less contentiousBrian Anderson-9/+14
It still utterly dominates some benchmarks with busy waiting, but at least it doesn't create lock contention while doing so.
2012-02-26rt: Remove ptr_vec. UnusedBrian Anderson-28/+0
2012-02-26rt: Remove smart_ptr. UnusedBrian Anderson-34/+0
2012-02-09rt: Make rust_task::ref_count privateBrian Anderson-1/+2
2012-02-08rt: Change the lifecycle of tasks and schedulers for various reasonsBrian Anderson-9/+8
This is in preparation for giving schedulers their own life cycle separate from the kernel. Tasks must be deleted before their scheduler thread, so we can't let the scheduler exit before all its tasks have been cleaned up. In this scheme, the scheduler will unregister tasks with the kernel when they are reaped, then drop their ref on the task (there may still be others). When the task ref count hits zero, the task will request to be unregistered from the scheduler, which is responsible for deleting the task. Instead of having the kernel tell the scheduler to exit, let the scheduler decide when to exit. For now it will exit when all of its tasks are unregistered.
2012-02-08rt: Introduce scheduler idsBrian Anderson-0/+1
2012-02-07Stop storing cmp glue in tydescsMarijn Haverbeke-5/+2
There's no such thing anymore, we can simply call upcalls.cmp_type.
2012-02-03rt: Rename rust_scheduler to rust_task_threadBrian Anderson-2/+2
2012-02-02rt: Remove yield timersBrian Anderson-1/+0
2012-02-02rt: Remove bitrotted testsBrian Anderson-4/+0
2012-02-01make boxes self-describing (fixes #1493)" (take 2)Niko Matsakis-12/+19
this will be used to generate a new snapshot.
2012-02-01Revert "make boxes self-describing (fixes #1493)" until a newNiko Matsakis-19/+12
snapshot is prepared.
2012-02-01make boxes self-describing (fixes #1493)Niko Matsakis-12/+19
2012-02-01rt: Remove rust_timer. UnusedBrian Anderson-21/+0
2012-01-12libcore: Add sys::set_exit_statusBrian Anderson-1/+1
Sets the process exit code
2012-01-11Revert some iface shape code, fix a few more things in itMarijn Haverbeke-17/+0
We can now run the compiler with an iface-based hashtable implementation.
2012-01-10update shape code to handle iface instancesNiko Matsakis-0/+17
2012-01-06fix how we walk functions to match new closure fmtNiko Matsakis-3/+24
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