Add a heap HWM to the Thread*, for compiled code.
Also fix a bug in thread detach, and implement the thread exit callback.
Destroy our pthread_mutex_t instances, and check for success. (This will
catch us deleting locked Mutex instances.)
Change-Id: I26cf8117b825234f6c790e0cf70b2c025a743f84
diff --git a/src/heap.h b/src/heap.h
index 296266a..52c1f10 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -30,7 +30,7 @@
// Create a heap with the requested sizes. The optional boot image may
// be NULL, otherwise it is an image filename created by ImageWriter.
// image_file_names specifies application images to load.
- static bool Init(size_t starting_size, size_t maximum_size,
+ static void Init(size_t starting_size, size_t maximum_size,
const char* boot_image_file_name,
std::vector<const char*>& image_file_names);