Searched refs:kMaxNumberOfGCs (Results 1 - 3 of 3) sorted by relevance

/external/v8/src/heap/
H A Dmemory-reducer.cc19 const int MemoryReducer::kMaxNumberOfGCs = 3; member in class:v8::internal::MemoryReducer
159 if (state.started_gcs >= kMaxNumberOfGCs) {
160 return State(kDone, kMaxNumberOfGCs, 0.0, state.last_gc_time_ms);
182 if (state.started_gcs < kMaxNumberOfGCs &&
187 return State(kDone, kMaxNumberOfGCs, 0.0, event.time_ms);
H A Dmemory-reducer.h28 // The <started_gcs> is an integer in range from 0..kMaxNumberOfGCs that stores
61 // - in the timer callback if n >= kMaxNumberOfGCs.
73 // n == kMaxNumberOfGCs.
77 // n < kMaxNumberOfGCs.
127 static const int kMaxNumberOfGCs; member in class:v8::internal::MemoryReducer
/external/v8/test/unittests/heap/
H A Dmemory-reducer-unittest.cc207 state0.started_gcs = MemoryReducer::kMaxNumberOfGCs;
212 EXPECT_EQ(MemoryReducer::kMaxNumberOfGCs, state1.started_gcs);
218 EXPECT_EQ(MemoryReducer::kMaxNumberOfGCs, state1.started_gcs);
224 EXPECT_EQ(MemoryReducer::kMaxNumberOfGCs, state1.started_gcs);
268 EXPECT_EQ(MemoryReducer::kMaxNumberOfGCs, state1.started_gcs);
271 state0.started_gcs = MemoryReducer::kMaxNumberOfGCs;

Completed in 288 milliseconds