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

Unified Diff: runtime/bin/directory.h

Issue 2653583002: VM: Fix asan memory leak in some standalone tests (Closed)
Patch Set: Switch to propagate the error manually Created 3 years, 11 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/directory.cc » ('j') | runtime/bin/directory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.h
diff --git a/runtime/bin/directory.h b/runtime/bin/directory.h
index 86026b7300eba7d5efbff23619842f5a17cc1713..788a597e50392a4805a1baad9a8218555725407b 100644
--- a/runtime/bin/directory.h
+++ b/runtime/bin/directory.h
@@ -193,10 +193,13 @@ class AsyncDirectoryListing : public ReferenceCounted<AsyncDirectoryListing>,
class SyncDirectoryListing : public DirectoryListing {
public:
SyncDirectoryListing(Dart_Handle results,
+ Dart_Handle* dart_error,
const char* dir_name,
bool recursive,
bool follow_links)
- : DirectoryListing(dir_name, recursive, follow_links), results_(results) {
+ : DirectoryListing(dir_name, recursive, follow_links),
+ results_(results),
+ dart_error_(dart_error) {
add_string_ = DartUtils::NewString("add");
directory_type_ = DartUtils::GetDartType(DartUtils::kIOLibURL, "Directory");
file_type_ = DartUtils::GetDartType(DartUtils::kIOLibURL, "File");
@@ -214,6 +217,7 @@ class SyncDirectoryListing : public DirectoryListing {
Dart_Handle directory_type_;
Dart_Handle file_type_;
Dart_Handle link_type_;
+ Dart_Handle* dart_error_;
zra 2017/01/23 17:04:51 DBC: Why is this a pointer? Why can't it be a reg
kustermann 2017/01/23 18:45:32 I made it a pointer to avoid an uninitialized vari
zra 2017/01/23 18:53:15 Not sure what you mean by this. What call site?
kustermann 2017/01/23 18:55:44 Line 128 here https://codereview.chromium.org/265
DISALLOW_ALLOCATION()
DISALLOW_IMPLICIT_CONSTRUCTORS(SyncDirectoryListing);
« no previous file with comments | « no previous file | runtime/bin/directory.cc » ('j') | runtime/bin/directory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698