[PATCH] Make CrashRecoveryContext's globals use ManagedStatic

Chris Lattner clattner at apple.com
Thu Sep 12 10:46:13 PDT 2013


On Sep 12, 2013, at 10:39 AM, Filip Pizlo <fpizlo at apple.com> wrote:

> New patch, using ManagedStatic.
> 
> This switches CrashRecoveryContext to using ManagedStatic for its global Mutex and global ThreadLocals, thereby getting rid of the load-time initialization of those objects and also getting rid of their destruction unless the LLVM client calls llvm_shutdown.

LGTM, thanks Filip!

-Chris




More information about the llvm-commits mailing list