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

Unified Diff: runtime/bin/loader.h

Issue 2147833002: Make loader lock new-allocated to avoid shutdown crash. (Closed) Base URL: git@github.com:dart-lang/sdk.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
« no previous file with comments | « no previous file | runtime/bin/loader.cc » ('j') | runtime/bin/loader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/loader.h
diff --git a/runtime/bin/loader.h b/runtime/bin/loader.h
index 088ce2ecc39fa16f3daeddc6374749f6c7679ccb..1c8f4ad99497bfc9feb152a02ba58e9f72d0c050 100644
--- a/runtime/bin/loader.h
+++ b/runtime/bin/loader.h
@@ -37,6 +37,8 @@ class Loader {
return error_;
}
+ static void InitOnce();
+
private:
// The port assigned to our native message handler.
Dart_Port port_;
@@ -120,7 +122,7 @@ class Loader {
};
// The map of active loaders.
- static Mutex loader_infos_lock_;
+ static Mutex* loader_infos_lock_;
static LoaderInfo* loader_infos_;
static intptr_t loader_infos_length_;
static intptr_t loader_infos_capacity_;
« no previous file with comments | « no previous file | runtime/bin/loader.cc » ('j') | runtime/bin/loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698