summary refs log tree commit diff
path: root/src/rt/rust_util.h
AgeCommit message (Collapse)AuthorLines
2012-07-25Fix asserts & short-read bug in isaac_seed (#2870)Ben Blum-5/+10
2012-07-17Create some infrastructure for building up @-vectors. Work on #2921.Michael Sullivan-0/+10
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-1/+1
2012-06-18Put type descriptors in strings created by the runtime. Progress on #2638.Michael Sullivan-0/+5
2012-06-13Add a malloc_dyn upcall for dynamically sized allocations on the shared heap.Michael Sullivan-0/+7
2012-06-05rt: Fix iaac_init using wrong type and not seeding correctlyBrian Anderson-4/+4
This was a result of changing the vector representation to contain a box header.
2012-05-30Various changes for self-describing vecsBrian Anderson-17/+25
2012-05-21rt: Fix def of isaac_seed on windowsBrian Anderson-2/+2
2012-05-21add a seeded random number generator so that sequences of random numbers can ↵Gareth Daniel Smith-40/+47
be easily reproduced (for https://github.com/mozilla/rust/issues/2379)
2012-04-03Refactor includes structure, getting rid of rust_internal.hJon Morton-1/+2
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-01replace assertion macros with plain assertsJon Morton-5/+4
2012-03-31rt: Fix whitespaceBrian Anderson-2/+4
2012-03-19rt: Remove an unused functionBrian Anderson-11/+0
2012-02-29add the ability to snag the frame so we can verify that we are inliningNiko Matsakis-0/+17
2012-02-26rt: Remove unused forward declaration of rust_realloc_sharedBrian Anderson-2/+0
2012-02-26rt: Remove ptr_vec. UnusedBrian Anderson-91/+0
2012-02-17rt: Make upcall_vec_push an intrinsicBrian Anderson-11/+1
2012-02-17rt: Don't hit TLS on upcall_vec_push unless necessaryBrian Anderson-0/+12
2012-02-07Make process-spawning take environments and working directories, remove ↵Graydon Hoare-0/+15
procsrv task from compiletest.
2012-02-05Making vec::reserve reserve precisely the size given (untested)Kevin Cantu-5/+7
2012-02-03rt: Make isaac_init not a templateBrian Anderson-10/+9
2012-02-03rt: Rename rust_scheduler to rust_task_threadBrian Anderson-25/+25
2012-01-11add a log_str() function and allow '%?' in fmt strings to use itNiko Matsakis-1/+1
2012-01-06fix how we walk functions to match new closure fmtNiko Matsakis-1/+0
2011-09-02Add a rust_str typedef to the runtime. Issue #855Brian Anderson-2/+4
2011-09-02Rename istr-stuff to str in the runtime. Issue #855Brian Anderson-1/+1
2011-09-02Remove estrs and evecs from runtime. Issue #855Brian Anderson-30/+0
2011-09-01Factor out make_istr utility function in runtime. Issue #855Brian Anderson-0/+13
2011-08-29Factor vector reserve code in runtime into its own functionMarijn Haverbeke-0/+9
2011-08-29Implement non-internal ivecsMarijn Haverbeke-17/+7
Vectors are now similar to our old, pre-internal vectors, except that they are uniquely owned, not refcounted. Their name should probably change too, then. I've renamed them to vec in the runtime, will do so throughout the compiler later.
2011-08-18Make windows respect RUST_SEED. Closes #627.Michael Sullivan-11/+10
2011-08-18Remove rc_base. Closes #603.Michael Sullivan-15/+5
2011-08-18Rename rust_vec to rust_evecBrian Anderson-5/+5
2011-08-17rustc: Use obstacks in lieu of dynamically-allocated frames only when the ↵Patrick Walton-0/+10
frame is actually dynamically-sized
2011-08-17Revert "rt: Use obstacks in lieu of dynamically-sized frames"Patrick Walton-10/+0
This reverts commit cc5fcfce89312042e52401eb883160ebf289235f.
2011-08-17rt: Use obstacks in lieu of dynamically-sized framesPatrick Walton-0/+10
2011-08-10rt: Use _LP64 instead of SIZE_MAX and UINT64_MAX to try to put out the ↵Patrick Walton-1/+1
burning tinderbox
2011-08-10rt: Attempt to quiet MinGW by including limits.hPatrick Walton-0/+1
2011-07-28Do all runtime calls to getenv at initializationBrian Anderson-1/+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-28Updating to work on Windows.Eric Holk-3/+3
2011-07-28Per-thread scheduling. Closes #682.Eric Holk-1/+2
Tasks are spawned on a random thread. Currently they stay there, but we should add task migration and load balancing in the future. This should drammatically improve our task performance benchmarks.
2011-07-21Lots of work on memory tracking and channels.Eric Holk-2/+2
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-19Fix calculation of sizeof boxed ivec of str in rt. Closes #712Brian Anderson-0/+1
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-3/+3
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/+4
make it harder to use the wrong one.
2011-06-28Renamed what's left of rust_dom to rust_schedulerEric Holk-26/+27
2011-06-28Moved win32_require to the kernel.Eric Holk-3/+3
2011-06-28Removed dom_owned, splitting things between task_owned and kernel_owned. Had ↵Eric Holk-23/+26
to re-xfail a few tests brson recently un-xfailed.
2011-06-14rustc: Implement on-heap resizing for interior vectorsPatrick Walton-2/+2