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

Unified Diff: runtime/vm/timeline_win.cc

Issue 2984313002: Allocate the fixed-size timeline buffer with virtual memory instead of malloc. (Closed)
Patch Set: Created 3 years, 5 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
« runtime/vm/timeline.h ('K') | « runtime/vm/timeline_macos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/timeline_win.cc
diff --git a/runtime/vm/timeline_win.cc b/runtime/vm/timeline_win.cc
index d28a344a89587c55efa257b0c42236a724c05e2b..11f5e73437471df64508b8b6fdca820a82a958a4 100644
--- a/runtime/vm/timeline_win.cc
+++ b/runtime/vm/timeline_win.cc
@@ -33,7 +33,7 @@ TimelineEventBlock* TimelineEventPlatformRecorder::GetNewBlockLocked() {
if (block_cursor_ == num_blocks_) {
block_cursor_ = 0;
}
- TimelineEventBlock* block = blocks_[block_cursor_++];
+ TimelineEventBlock* block = &blocks_[block_cursor_++];
block->Reset();
block->Open();
return block;
« runtime/vm/timeline.h ('K') | « runtime/vm/timeline_macos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698