SchrodingerZhu wrote: @jhuber6 So after https://github.com/microsoft/snmalloc/pull/762, we will be able to use pthread_setspecific to handle clean up. There will be no need to use a separate hook. https://github.com/llvm/llvm-project/pull/122284