diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-08-28 15:54:45 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-06 06:11:12 -0700 |
| commit | 5e36a997945ddc3964a1fe937bc5390cc5b526c8 (patch) | |
| tree | 0c37dfa0d20004d0098e0bbb620744a1ad4a81d8 /src/rt/rust_upcall.cpp | |
| parent | adc1427282b4da8f963550e87cdbe512157958b4 (diff) | |
| download | rust-5e36a997945ddc3964a1fe937bc5390cc5b526c8.tar.gz rust-5e36a997945ddc3964a1fe937bc5390cc5b526c8.zip | |
Refactor trans to replace lvalue and friends with Datum.
Also: - report illegal move/ref combos whether or not ref comes first - commented out fix for #3387, too restrictive and causes an ICE
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 8bab4b9e2d3..e59c1b2b8c7 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -147,7 +147,6 @@ extern "C" CDECL void upcall_s_exchange_malloc(s_exchange_malloc_args *args) { rust_task *task = args->task; LOG_UPCALL_ENTRY(task); - LOG(task, mem, "upcall exchange malloc(0x%" PRIxPTR ")", args->td); size_t total_size = get_box_size(args->size, args->td->align); // FIXME--does this have to be calloc? (Issue #2682) @@ -159,6 +158,9 @@ upcall_s_exchange_malloc(s_exchange_malloc_args *args) { header->prev = 0; header->next = 0; + LOG(task, mem, "exchange malloced %p of size %" PRIuPTR, + header, args->size); + args->retval = (uintptr_t)header; } @@ -187,6 +189,7 @@ extern "C" CDECL void upcall_s_exchange_free(s_exchange_free_args *args) { rust_task *task = args->task; LOG_UPCALL_ENTRY(task); + LOG(task, mem, "exchange freed %p", args->ptr); task->kernel->free(args->ptr); } |
