snapshot: use %p for printing pointers
[cdsspec-compiler.git] / threads.cc
index 80957adf7b1709c015b4a30bc82deacc98767b92..bdeea6a0e0c34c573df705d3874f8c81b8e8316b 100644 (file)
@@ -9,12 +9,12 @@
 
 static void * stack_allocate(size_t size)
 {
-       return userMalloc(size);
+       return MYMALLOC(size);
 }
 
 static void stack_free(void *stack)
 {
-       userFree(stack);
+       MYFREE(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);
 }