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

Unified Diff: src/heap/gc-tracer.h

Issue 815933005: Reset old generation limit on main frame context disposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | src/heap/gc-tracer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/gc-tracer.h
diff --git a/src/heap/gc-tracer.h b/src/heap/gc-tracer.h
index a2e4bc293eefc4366d500fcc81ea945c828a33b0..528eb52c6455f073f8ed4139278ac4f2ef7462a1 100644
--- a/src/heap/gc-tracer.h
+++ b/src/heap/gc-tracer.h
@@ -71,6 +71,11 @@ class RingBuffer {
elements_[begin_] = element;
}
+ void reset() {
+ begin_ = 0;
+ end_ = 0;
+ }
+
private:
T elements_[MAX_SIZE + 1];
size_t begin_;
@@ -390,6 +395,9 @@ class GCTracer {
// Returns true if at least one survival event was recorded.
bool SurvivalEventsRecorded() const;
+ // Discard all recorded survival events.
+ void ResetSurvivalEvents();
+
private:
// Print one detailed trace line in name=value format.
// TODO(ernstm): Move to Heap.
« no previous file with comments | « no previous file | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698