summaryrefslogtreecommitdiff
path: root/src/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Brian Carlstrom <bdc@google.com> 2013-03-27 15:20:06 -0700
committer Brian Carlstrom <bdc@google.com> 2013-03-27 15:20:06 -0700
commit22c0569fe6816086acdef90798622a6d6e209532 (patch)
treea55140d6ae59979844def18ee3c122c193249bff /src/compiler/driver/compiler_driver.cc
parent857fe960a02834c0d6b8792dcc0af8143995cb1f (diff)
Disable close of compiler_library_ to workaround mclinker bug affecting gtest output
Change-Id: I93b4a83861803a5e610c719bf3468f8967701ff0
Diffstat (limited to 'src/compiler/driver/compiler_driver.cc')
-rw-r--r--src/compiler/driver/compiler_driver.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/driver/compiler_driver.cc b/src/compiler/driver/compiler_driver.cc
index 169790f9f3..1b2710a261 100644
--- a/src/compiler/driver/compiler_driver.cc
+++ b/src/compiler/driver/compiler_driver.cc
@@ -415,6 +415,7 @@ CompilerDriver::~CompilerDriver() {
compiler_library_, "ArtUnInitQuickCompilerContext");
}
uninit_compiler_context(*this);
+#if 0
if (compiler_library_ != NULL) {
VLOG(compiler) << "dlclose(" << compiler_library_ << ")";
/*
@@ -427,9 +428,14 @@ CompilerDriver::~CompilerDriver() {
* However, this is not required by POSIX and we don't do it.
* See: http://b/issue?id=4998315
* What's the right thing to do here?
+ *
+ * This has now been completely disabled because mclinker was
+ * closing stdout on exit, which was affecting both quick and
+ * portable.
*/
dlclose(compiler_library_);
}
+#endif
}
CompilerTls* CompilerDriver::GetTls() {