rt: Refactor record_sp into task::record_stack_limit

This commit is contained in:
Brian Anderson
2011-12-01 15:26:42 -08:00
parent d1fd7d49a7
commit 6da1a3fcd6
3 changed files with 8 additions and 6 deletions

View File

@@ -367,14 +367,11 @@ rust_scheduler::init_tls() {
tls_initialized = true;
}
extern "C" CDECL void
record_sp(void *limit);
void
rust_scheduler::place_task_in_tls(rust_task *task) {
int result = pthread_setspecific(task_key, task);
assert(!result && "Couldn't place the task in TLS!");
record_sp(task->stk->data + RED_ZONE_SIZE);
task->record_stack_limit();
}
rust_task *