From f130655cbc841fb5bb02109ce9746b4b8a041034 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Fri, 16 Mar 2012 11:17:53 +0800 Subject: Workaround on SEGV of LLVM backend. (cherry picked from commit ef55ccce6460079c75745ba6ebea99d189980779) Change-Id: I940e237ab17d027c20273da12b45f091b0cd9f59 --- src/compiler_llvm/compiler_llvm.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/compiler_llvm/compiler_llvm.cc') diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index dc3b7cbcf2..7563fe009d 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -78,9 +78,11 @@ void InitializeLLVM() { llvm::llvm_start_multithreaded(); } -// Singleton. Otherwise, multiple CompilerLLVM instances may cause crashes if -// one shuts down prematurely. -llvm::llvm_shutdown_obj llvm_guard; +// The Guard to Shutdown LLVM +//llvm::llvm_shutdown_obj llvm_guard; +// TODO: We are commenting this line because this will cause SEGV. This may +// related to two possible reasons: (1) the order of the destruction of static +// objects, and (2) dlopen/dlclose side-effect on static objects. } // anonymous namespace -- cgit v1.2.3-59-g8ed1b