Lines Matching refs:GCIdleTimeHandler
20 GCIdleTimeHandler* handler() { return &handler_; }
25 result.contexts_disposal_rate = GCIdleTimeHandler::kHighContextDisposalRate;
36 GCIdleTimeHandler handler_;
42 TEST(GCIdleTimeHandler, EstimateMarkingStepSizeInitial) {
43 size_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize(1, 0);
45 static_cast<size_t>(GCIdleTimeHandler::kInitialConservativeMarkingSpeed *
46 GCIdleTimeHandler::kConservativeTimeRatio),
51 TEST(GCIdleTimeHandler, EstimateMarkingStepSizeNonZero) {
53 size_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize(
56 GCIdleTimeHandler::kConservativeTimeRatio),
61 TEST(GCIdleTimeHandler, EstimateMarkingStepSizeOverflow1) {
62 size_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize(
64 EXPECT_EQ(static_cast<size_t>(GCIdleTimeHandler::kMaximumMarkingStepSize),
69 TEST(GCIdleTimeHandler, EstimateMarkingStepSizeOverflow2) {
70 size_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize(
72 EXPECT_EQ(static_cast<size_t>(GCIdleTimeHandler::kMaximumMarkingStepSize),
77 TEST(GCIdleTimeHandler, EstimateMarkCompactTimeInitial) {
79 size_t time = GCIdleTimeHandler::EstimateMarkCompactTime(size, 0);
80 EXPECT_EQ(size / GCIdleTimeHandler::kInitialConservativeMarkCompactSpeed,
85 TEST(GCIdleTimeHandler, EstimateMarkCompactTimeNonZero) {
88 size_t time = GCIdleTimeHandler::EstimateMarkCompactTime(size, speed);
93 TEST(GCIdleTimeHandler, EstimateMarkCompactTimeMax) {
96 size_t time = GCIdleTimeHandler::EstimateMarkCompactTime(size, speed);
97 EXPECT_EQ(GCIdleTimeHandler::kMaxMarkCompactTimeInMs, time);
102 size_t idle_time_ms = GCIdleTimeHandler::kMaxScheduledIdleTime;
103 EXPECT_TRUE(GCIdleTimeHandler::ShouldDoMarkCompact(idle_time_ms, 0, 0));
109 EXPECT_FALSE(GCIdleTimeHandler::ShouldDoMarkCompact(
116 EXPECT_TRUE(GCIdleTimeHandler::ShouldDoFinalIncrementalMarkCompact(
123 EXPECT_FALSE(GCIdleTimeHandler::ShouldDoFinalIncrementalMarkCompact(
142 GCIdleTimeHandler::kHighContextDisposalRate - 1;
165 GCIdleTimeHandler::kHighContextDisposalRate;
177 GCIdleTimeHandler::kHighContextDisposalRate;