FastMalloc uses pthreads support for thread-specific storage to make sure that destructors for data get called. However, pthreads-win32 only calls those from pthread_exit (or when the thread's main function returns, but only for threads created with pthread_create).
Since ThreadingWin.cpp uses native Win32 functions, I believe that this data just leaks when a thread finishes.
Created attachment 20529 [details]
Comment on attachment 20529 [details]
I think process.h should be moved below MainThread.h
+unsigned __stdcall wtfThreadEntryPoint(void* param)
I think this should be declared static.
Committed revision 31864 with suggested changes.