rt: Remove the GC alloc chain

This commit is contained in:
Patrick Walton 2011-09-20 14:20:16 -07:00
parent 45086b7bfd
commit 307957710c
3 changed files with 4 additions and 9 deletions

View file

@ -57,7 +57,6 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
ref_count(1),
stk(NULL),
runtime_sp(0),
gc_alloc_chain(0),
sched(sched),
cache(NULL),
kernel(sched->kernel),

View file

@ -59,7 +59,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
context ctx;
stk_seg *stk;
uintptr_t runtime_sp; // Runtime sp while task running.
rust_box *gc_alloc_chain; // Linked list of GC allocations.
rust_scheduler *sched;
rust_crate_cache *cache;

View file

@ -57,9 +57,8 @@ upcall_malloc(rust_task *task, size_t nbytes, type_desc *td) {
LOG_UPCALL_ENTRY(task);
LOG(task, mem,
"upcall malloc(%" PRIdPTR ", 0x%" PRIxPTR ")"
" with gc-chain head = 0x%" PRIxPTR,
nbytes, td, task->gc_alloc_chain);
"upcall malloc(%" PRIdPTR ", 0x%" PRIxPTR ")",
nbytes, td);
gc::maybe_gc(task);
@ -69,10 +68,8 @@ upcall_malloc(rust_task *task, size_t nbytes, type_desc *td) {
void *p = task->malloc(nbytes, "tdesc", td);
LOG(task, mem,
"upcall malloc(%" PRIdPTR ", 0x%" PRIxPTR
") = 0x%" PRIxPTR
" with gc-chain head = 0x%" PRIxPTR,
nbytes, td, (uintptr_t)p, task->gc_alloc_chain);
"upcall malloc(%" PRIdPTR ", 0x%" PRIxPTR ") = 0x%" PRIxPTR,
nbytes, td, (uintptr_t)p);
return (uintptr_t) p;
}