X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads.cc;h=37b0f1a87ee6fb9ac975a84c8df9adf018d808c5;hb=7d2149ffbbc1a3514838d721a71bb0d4c81054b3;hp=80957adf7b1709c015b4a30bc82deacc98767b92;hpb=10de861d3a9908e75b6f94283cc67b3f1b4d93ab;p=model-checker.git diff --git a/threads.cc b/threads.cc index 80957ad..37b0f1a 100644 --- a/threads.cc +++ b/threads.cc @@ -9,12 +9,12 @@ static void * stack_allocate(size_t size) { - return userMalloc(size); + return malloc(size); } static void stack_free(void *stack) { - userFree(stack); + free(stack); } Thread * thread_current(void) @@ -25,7 +25,7 @@ Thread * thread_current(void) /* This method just gets around makecontext not being 64-bit clean */ void thread_startup() { - Thread * curr_thread=thread_current(); + Thread * curr_thread = thread_current(); curr_thread->start_routine(curr_thread->arg); }