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

Side by Side Diff: runtime/bin/isolate_data.h

Issue 2720723005: VM: Fix an app-jit related shutdown race. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/isolate_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_BIN_ISOLATE_DATA_H_ 5 #ifndef RUNTIME_BIN_ISOLATE_DATA_H_
6 #define RUNTIME_BIN_ISOLATE_DATA_H_ 6 #define RUNTIME_BIN_ISOLATE_DATA_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 void set_loader(Loader* loader) { 62 void set_loader(Loader* loader) {
63 ASSERT((loader_ == NULL) || (loader == NULL)); 63 ASSERT((loader_ == NULL) || (loader == NULL));
64 loader_ = loader; 64 loader_ = loader;
65 } 65 }
66 MallocGrowableArray<char*>* dependencies() const { return dependencies_; } 66 MallocGrowableArray<char*>* dependencies() const { return dependencies_; }
67 void set_dependencies(MallocGrowableArray<char*>* deps) { 67 void set_dependencies(MallocGrowableArray<char*>* deps) {
68 dependencies_ = deps; 68 dependencies_ = deps;
69 } 69 }
70 70
71 void OnIsolateShutdown();
72
71 private: 73 private:
72 Dart_Handle builtin_lib_; 74 Dart_Handle builtin_lib_;
73 Loader* loader_; 75 Loader* loader_;
74 AppSnapshot* app_snapshot_; 76 AppSnapshot* app_snapshot_;
75 MallocGrowableArray<char*>* dependencies_; 77 MallocGrowableArray<char*>* dependencies_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(IsolateData); 79 DISALLOW_COPY_AND_ASSIGN(IsolateData);
78 }; 80 };
79 81
80 } // namespace bin 82 } // namespace bin
81 } // namespace dart 83 } // namespace dart
82 84
83 #endif // RUNTIME_BIN_ISOLATE_DATA_H_ 85 #endif // RUNTIME_BIN_ISOLATE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/isolate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698