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

Unified Diff: src/heap/spaces.cc

Issue 2857213003: [heap] Fix RuntimeCallTimerScope usages (Closed)
Patch Set: Just fix timer scopes Created 3 years, 7 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 | « src/heap/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 47e8e672ede7a9d72f26c4d7958ef1d5d3821997..afbb452f54527878fe55a8b4034344f51b535627 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -2937,8 +2937,8 @@ HeapObject* CompactionSpace::SweepAndRetryAllocation(int size_in_bytes) {
HeapObject* PagedSpace::SlowAllocateRaw(int size_in_bytes) {
VMState<GC> state(heap()->isolate());
- RuntimeCallTimerScope(heap()->isolate(),
- &RuntimeCallStats::GC_SlowAllocateRaw);
+ RuntimeCallTimerScope runtime_timer(heap()->isolate(),
+ &RuntimeCallStats::GC_SlowAllocateRaw);
return RawSlowAllocateRaw(size_in_bytes);
}
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698