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

Unified Diff: src/heap/incremental-marking.cc

Issue 2860043002: [heap] Add VMState to IncrementalMarking observer (Closed)
Patch Set: Created 3 years, 8 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/incremental-marking.h ('k') | src/heap/incremental-marking-job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/incremental-marking.cc
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
index b5d023512f2c62609862ea02c2c84af4753fe9b8..a9a71cfb6367f7d9ef5882db7bf02f245501b625 100644
--- a/src/heap/incremental-marking.cc
+++ b/src/heap/incremental-marking.cc
@@ -18,10 +18,19 @@
#include "src/tracing/trace-event.h"
#include "src/v8.h"
#include "src/visitors.h"
+#include "src/vm-state-inl.h"
namespace v8 {
namespace internal {
+void IncrementalMarking::Observer::Step(int bytes_allocated, Address, size_t) {
+ VMState<GC> state(incremental_marking_.heap()->isolate());
+ RuntimeCallTimerScope runtime_timer(
+ incremental_marking_.heap()->isolate(),
+ &RuntimeCallStats::GC_IncrementalMarkingObserver);
+ incremental_marking_.AdvanceIncrementalMarkingOnAllocation();
+}
+
IncrementalMarking::IncrementalMarking(Heap* heap)
: heap_(heap),
marking_deque_(nullptr),
« no previous file with comments | « src/heap/incremental-marking.h ('k') | src/heap/incremental-marking-job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698