leak llvmcontexts for now
Being thread_local, these destruct in an awkward order with the other major thread_locals, the SkVMBlitter Program caches. So, just leak them for now. Change-Id: Ia45f65eba0a301e2a047458610d5fa3110dff006 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/274220 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
c02a41f0e6
commit
c2b6769ab2
@ -1897,7 +1897,7 @@ namespace skvm {
|
||||
#if defined(SKVM_LLVM)
|
||||
void Program::setupLLVM(const std::vector<OptimizedInstruction>& instructions,
|
||||
const char* debug_name) {
|
||||
thread_local static llvm::LLVMContext ctx;
|
||||
thread_local static llvm::LLVMContext& ctx = *(new llvm::LLVMContext);
|
||||
auto mod = std::make_unique<llvm::Module>("", ctx);
|
||||
// All the scary bare pointers from here on are owned by ctx or mod, I think.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user