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

Unified Diff: runtime/vm/native_api_impl.cc

Issue 1414493003: Remove some Isolate::current_zone() calls, as it gets the zone from mutator thread not the current … (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: cleanup Created 5 years, 2 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: runtime/vm/native_api_impl.cc
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc
index ce055293cd8784fd09f83909bc5e8c2830a8cfe8..1d31eab1d105a4ea56702dc451609026e01b8622 100644
--- a/runtime/vm/native_api_impl.cc
+++ b/runtime/vm/native_api_impl.cc
@@ -71,8 +71,7 @@ DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id) {
static void CompileAll(Isolate* isolate, Dart_Handle* result) {
ASSERT(isolate != NULL);
- const Error& error =
- Error::Handle(isolate->current_zone(), Library::CompileAll());
+ const Error& error = Error::Handle(Library::CompileAll());
if (error.IsNull()) {
*result = Api::Success();
} else {

Powered by Google App Engine
This is Rietveld 408576698