summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compiler_llvm.cc
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-03-16 11:17:53 +0800
committer Shih-wei Liao <sliao@google.com> 2012-03-26 20:54:03 -0700
commitf130655cbc841fb5bb02109ce9746b4b8a041034 (patch)
tree34d2743aa87314b6cb51b4c3da96b35d42283a27 /src/compiler_llvm/compiler_llvm.cc
parent28f1a147d77ec772db98bed890b50a9ddcff2365 (diff)
Workaround on SEGV of LLVM backend.
(cherry picked from commit ef55ccce6460079c75745ba6ebea99d189980779) Change-Id: I940e237ab17d027c20273da12b45f091b0cd9f59
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
-rw-r--r--src/compiler_llvm/compiler_llvm.cc8
1 files changed, 5 insertions, 3 deletions
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