replace malloc/calloc/free with snapshot_{malloc/calloc/free}
[model-checker.git] / threads.cc
index 836bf2c72a7056923c4d3c09865076bb5fe9caef..09efcae619c06b78ed5c2668473c2b8143b9ea71 100644 (file)
 /** Allocate a stack for a new thread. */
 static void * stack_allocate(size_t size)
 {
-       return malloc(size);
+       return snapshot_malloc(size);
 }
 
 /** Free a stack for a terminated thread. */
 static void stack_free(void *stack)
 {
-       free(stack);
+       snapshot_free(stack);
 }
 
 /** Return the currently executing thread. */