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

Unified Diff: runtime/bin/main.cc

Issue 9034005: Change the behavior of open on files to not truncate by default (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 12 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/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 333d58707851d0c2316509b5912c7a2601b54a78..23bf45efa6ee0536a6dfbd31bc1d31247444ed7e 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -197,7 +197,8 @@ static Dart_Handle SetupRuntimeOptions(CommandLineOptions* options) {
static void DumpPprofSymbolInfo() {
if (generate_pprof_symbols_filename != NULL) {
Dart_EnterScope();
- File* pprof_file = File::Open(generate_pprof_symbols_filename, true);
+ File* pprof_file =
+ File::Open(generate_pprof_symbols_filename, File::kWriteTruncate);
ASSERT(pprof_file != NULL);
void* buffer;
int buffer_size;

Powered by Google App Engine
This is Rietveld 408576698