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

Unified Diff: src/IceGlobalContext.h

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: Moved an include to the proper file 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
« no previous file with comments | « src/IceASanInstrumentation.cpp ('k') | src/IceInstrumentation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index 2d60f4845466f879ebc50a407ca021edab29a01f..e4be36b31b3c871a66f1bb783ada3877ea5cacfc 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -482,6 +482,10 @@ public:
return LockedPtr<StringPool>(Strings.get(), &StringsLock);
}
+ LockedPtr<VariableDeclarationList> getGlobals() {
+ return LockedPtr<VariableDeclarationList>(&Globals, &InitAllocLock);
+ }
+
/// Number of function blocks that can be queued before waiting for
/// translation
/// threads to consume.
@@ -612,6 +616,8 @@ private:
LockedPtr<VariableDeclarationList> _(&Globals, &InitAllocLock);
if (Globls != nullptr) {
Globals.merge(Globls.get());
+ if (!BuildDefs::minimal() && Instrumentor != nullptr)
+ Instrumentor->setHasSeenGlobals();
}
}
« no previous file with comments | « src/IceASanInstrumentation.cpp ('k') | src/IceInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698