BUG=
Review URL: https://codereview.chromium.org/
815933005
Cr-Commit-Position: refs/heads/master@{#25930}
bool GCTracer::SurvivalEventsRecorded() const {
return survival_events_.size() > 0;
}
+
+
+void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); }
}
} // namespace v8::internal
elements_[begin_] = element;
}
+ void reset() {
+ begin_ = 0;
+ end_ = 0;
+ }
+
private:
T elements_[MAX_SIZE + 1];
size_t begin_;
// 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.
int Heap::NotifyContextDisposed(bool dependant_context) {
- // TODO(hpayer): Reset heap shrinking if dependant_context is false.
+ if (!dependant_context) {
+ tracer()->ResetSurvivalEvents();
+ old_generation_size_configured_ = false;
+ }
if (isolate()->concurrent_recompilation_enabled()) {
// Flush the queued recompilation tasks.
isolate()->optimizing_compiler_thread()->Flush();