summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc')
-rw-r--r--deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc76
1 files changed, 0 insertions, 76 deletions
diff --git a/deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc b/deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc
index c46ee35095..55b8718675 100644
--- a/deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc
+++ b/deps/v8/test/unittests/heap/gc-idle-time-handler-unittest.cc
@@ -21,8 +21,6 @@ class GCIdleTimeHandlerTest : public ::testing::Test {
GCIdleTimeHeapState DefaultHeapState() {
GCIdleTimeHeapState result;
- result.contexts_disposed = 0;
- result.contexts_disposal_rate = GCIdleTimeHandler::kHighContextDisposalRate;
result.incremental_marking_stopped = false;
result.size_of_objects = kSizeOfObjects;
return result;
@@ -72,80 +70,6 @@ TEST(GCIdleTimeHandler, EstimateMarkingStepSizeOverflow2) {
step_size);
}
-
-TEST_F(GCIdleTimeHandlerTest, ContextDisposeLowRate) {
- if (!handler()->Enabled()) return;
- GCIdleTimeHeapState heap_state = DefaultHeapState();
- heap_state.contexts_disposed = 1;
- heap_state.incremental_marking_stopped = true;
- double idle_time_ms = 0;
- EXPECT_EQ(GCIdleTimeAction::kDone,
- handler()->Compute(idle_time_ms, heap_state));
-}
-
-
-TEST_F(GCIdleTimeHandlerTest, ContextDisposeHighRate) {
- if (!handler()->Enabled()) return;
- GCIdleTimeHeapState heap_state = DefaultHeapState();
- heap_state.contexts_disposed = 1;
- heap_state.contexts_disposal_rate =
- GCIdleTimeHandler::kHighContextDisposalRate - 1;
- heap_state.incremental_marking_stopped = true;
- double idle_time_ms = 0;
- EXPECT_EQ(GCIdleTimeAction::kFullGC,
- handler()->Compute(idle_time_ms, heap_state));
-}
-
-
-TEST_F(GCIdleTimeHandlerTest, AfterContextDisposeZeroIdleTime) {
- if (!handler()->Enabled()) return;
- GCIdleTimeHeapState heap_state = DefaultHeapState();
- heap_state.contexts_disposed = 1;
- heap_state.contexts_disposal_rate = 1.0;
- heap_state.incremental_marking_stopped = true;
- double idle_time_ms = 0;
- EXPECT_EQ(GCIdleTimeAction::kFullGC,
- handler()->Compute(idle_time_ms, heap_state));
-}
-
-
-TEST_F(GCIdleTimeHandlerTest, AfterContextDisposeSmallIdleTime1) {
- if (!handler()->Enabled()) return;
- GCIdleTimeHeapState heap_state = DefaultHeapState();
- heap_state.contexts_disposed = 1;
- heap_state.contexts_disposal_rate =
- GCIdleTimeHandler::kHighContextDisposalRate;
- size_t speed = kMarkCompactSpeed;
- double idle_time_ms = static_cast<double>(kSizeOfObjects / speed - 1);
- EXPECT_EQ(GCIdleTimeAction::kIncrementalStep,
- handler()->Compute(idle_time_ms, heap_state));
-}
-
-
-TEST_F(GCIdleTimeHandlerTest, AfterContextDisposeSmallIdleTime2) {
- if (!handler()->Enabled()) return;
- GCIdleTimeHeapState heap_state = DefaultHeapState();
- heap_state.contexts_disposed = 1;
- heap_state.contexts_disposal_rate =
- GCIdleTimeHandler::kHighContextDisposalRate;
- size_t speed = kMarkCompactSpeed;
- double idle_time_ms = static_cast<double>(kSizeOfObjects / speed - 1);
- EXPECT_EQ(GCIdleTimeAction::kIncrementalStep,
- handler()->Compute(idle_time_ms, heap_state));
-}
-
-TEST_F(GCIdleTimeHandlerTest, AfterContextDisposeLargeHeap) {
- if (!handler()->Enabled()) return;
- GCIdleTimeHeapState heap_state = DefaultHeapState();
- heap_state.contexts_disposed = 1;
- heap_state.contexts_disposal_rate = 1.0;
- heap_state.incremental_marking_stopped = true;
- heap_state.size_of_objects = 101 * MB;
- double idle_time_ms = 0;
- EXPECT_EQ(GCIdleTimeAction::kDone,
- handler()->Compute(idle_time_ms, heap_state));
-}
-
TEST_F(GCIdleTimeHandlerTest, IncrementalMarking1) {
if (!handler()->Enabled()) return;
GCIdleTimeHeapState heap_state = DefaultHeapState();