Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: src/IceGlobalContext.cpp

Issue 2165493002: Subzero: Fixed deadlock with _start but no globals (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceGlobalContext.cpp
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
index 349db7cc4ff4bb7db75c5233ce3d3ec1f318a91b..5ece81b31d950e123a53400c5f15aaec89e17f10 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -298,9 +298,9 @@ static constexpr size_t DefaultOptQWakeupSize = GlobalContext::MaxOptQSize >> 1;
GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit, Ostream *OsError,
ELFStreamer *ELFStr)
- : Strings(new StringPool()), ConstPool(new ConstantPool()), ErrorStatus(),
- StrDump(OsDump), StrEmit(OsEmit), StrError(OsError), IntrinsicsInfo(this),
- ObjectWriter(),
+ : GlobalsReceived(false), Strings(new StringPool()),
+ ConstPool(new ConstantPool()), ErrorStatus(), StrDump(OsDump),
+ StrEmit(OsEmit), StrError(OsError), IntrinsicsInfo(this), ObjectWriter(),
OptQWakeupSize(std::max(DefaultOptQWakeupSize,
size_t(getFlags().getNumTranslationThreads()))),
OptQ(/*Sequential=*/getFlags().isSequential(),

Powered by Google App Engine
This is Rietveld 408576698