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

Unified Diff: runtime/vm/object.cc

Issue 1174083002: Fix printing of stack overflow stacktraces (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: c Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 1ee6023859eb80c2993a849ee27e725f3ce90831..fdcb170e59cf5bf6dbf4f104a25535e66cc38522 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -20586,6 +20586,7 @@ const char* Stacktrace::ToCStringInternal(intptr_t* frame_index,
char* chars = isolate->current_zone()->Alloc<char>(truncated_len);
OS::SNPrint(chars, truncated_len, "%s", kTruncated);
frame_strings.Add(chars);
+ total_len += truncated_len;
}
} else if (function.is_visible() || FLAG_show_invisible_frames) {
code = CodeAtFrame(i);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698