Disable close of compiler_library_ to workaround mclinker bug affecting gtest output
Change-Id: I93b4a83861803a5e610c719bf3468f8967701ff0
diff --git a/src/compiler/driver/compiler_driver.cc b/src/compiler/driver/compiler_driver.cc
index 169790f..1b2710a 100644
--- a/src/compiler/driver/compiler_driver.cc
+++ b/src/compiler/driver/compiler_driver.cc
@@ -415,6 +415,7 @@
compiler_library_, "ArtUnInitQuickCompilerContext");
}
uninit_compiler_context(*this);
+#if 0
if (compiler_library_ != NULL) {
VLOG(compiler) << "dlclose(" << compiler_library_ << ")";
/*
@@ -427,9 +428,14 @@
* 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() {