about summary refs log tree commit diff
path: root/src/rt/memory_region.cpp
AgeCommit message (Collapse)AuthorLines
2011-07-29Merge pull request #781 from robarnold/upstream-stablerobarnold-2/+4
More useful leak debugging output.
2011-07-28Turn off TRACK_ALLOCATIONSBrian Anderson-1/+1
2011-07-28When using the allow leaks hack don't even print a warning about the leakBrian Anderson-3/+0
This is only used for the test runner and in that case it just makes the test output confusing
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-28Atomic reference counting for tasks.Eric Holk-1/+1
2011-07-28More useful leak debugging output.Rob Arnold-2/+4
When printing out leaked allocations, print the allocation tag and address of the returned pointer.
2011-07-22Fixing a use of uninitialized memory error in valgrind.Eric Holk-2/+2
2011-07-21Improving move semantics for channel operations.Eric Holk-1/+1
This lets us un-XFAIL task-comm-10.rs.
2011-07-21Lots of work on memory tracking and channels.Eric Holk-55/+39
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-20Add a huge hack to allow the test runner to continue if a single task leaksBrian Anderson-1/+12
This is just until unwinding works. Adds a flag to the runtime to turn the memory leak checks on task destruction into warnings instead of fatal errors. I am so sorry. Issue #428
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-3/+3
2011-07-13Remove 'Nop.' comments, add emacs lines, remove obsolete file.Graydon Hoare-1/+0
2011-07-13Fix compile-command lines in rt.Graydon Hoare-1/+1
2011-07-07Made TRACK_ALLOCATIONS add only constant time overhead. This makes itEric Holk-5/+48
feasible to turn it on and run rustc.
2011-07-07Work on debugging race conditions.Eric Holk-6/+17
Ports and channels have been moved to the kernel pool, since they've been known to outlive their associated task. This probably isn't the right thing to do, the life cycle needs fixed instead. Some refactorying in memory_region.cpp. Added a helper function to increment and decrement the allocation counter. This makes it easier to switch between atomic and non-atomic increments. Using atomic increments for now, although this still does not fix the problem.
2011-06-16rt: memory_region::free(NULL) shouldn't touch the live allocation countPatrick Walton-0/+1
2011-03-02Comment-out TRACK_ALLOCATIONS again. Leave a note about it.Graydon Hoare-1/+4
2011-03-02Parse parameter types for fmt extensionBrian Anderson-1/+1
2011-02-14Disable TRACK_ALLOCATIONS by default, it's a bit heavy-handed.Graydon Hoare-1/+1
2010-11-30Make the ugly detailed leak-spray on rustc failures optional.Graydon Hoare-7/+21
2010-09-07Lots of design changes around proxies and message passing. Made it so that ↵Michael Bebenita-5/+2
domains can only talk to other domains via handles, and with the help of the rust_kernel.
2010-08-17Lots of changes around memory managment in the Runtime. Added memory regions ↵Michael Bebenita-0/+100
and fixed race caused by calling rust_srv::malloc() from multiple threads when sending messages.