From 3ae4dcd41e72d197e3882835253745f79588b04a Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Mon, 18 Jul 2011 12:02:26 -0700 Subject: Lots of work on memory tracking and channels. 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. --- src/rt/rust_crate_cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_crate_cache.cpp') diff --git a/src/rt/rust_crate_cache.cpp b/src/rt/rust_crate_cache.cpp index e09e2db9954..953430beb68 100644 --- a/src/rt/rust_crate_cache.cpp +++ b/src/rt/rust_crate_cache.cpp @@ -16,7 +16,8 @@ rust_crate_cache::get_type_desc(size_t size, return td; } DLOG(sched, cache, "rust_crate_cache::get_type_desc miss"); - td = (type_desc*) sched->kernel->malloc(sizeof(type_desc) + keysz); + td = (type_desc*) sched->kernel->malloc(sizeof(type_desc) + keysz, + "crate cache typedesc"); if (!td) return NULL; // By convention, desc 0 is the root descriptor. -- cgit 1.4.1-3-g733a5