Lines Matching refs:Trait
13 template <typename Trait>
14 double MemoryController<Trait>::GrowingFactor(Heap* heap, size_t max_heap_size, in GrowingFactor()
24 Trait::kName, factor, Trait::kTargetMutatorUtilization, in GrowingFactor()
30 template <typename Trait>
31 double MemoryController<Trait>::MaxGrowingFactor(size_t max_heap_size) { in MaxGrowingFactor()
37 max_size = std::max({max_size, Trait::kMinSize}); in MaxGrowingFactor()
41 if (max_size >= Trait::kMaxSize) { in MaxGrowingFactor()
45 DCHECK_GE(max_size, Trait::kMinSize); in MaxGrowingFactor()
46 DCHECK_LT(max_size, Trait::kMaxSize); in MaxGrowingFactor()
49 double factor = (max_size - Trait::kMinSize) * in MaxGrowingFactor()
51 (Trait::kMaxSize - Trait::kMinSize) + in MaxGrowingFactor()
95 template <typename Trait>
96 double MemoryController<Trait>::DynamicGrowingFactor(double gc_speed, in DynamicGrowingFactor()
99 DCHECK_LE(Trait::kMinGrowingFactor, max_factor); in DynamicGrowingFactor()
100 DCHECK_GE(Trait::kMaxGrowingFactor, max_factor); in DynamicGrowingFactor()
105 const double a = speed_ratio * (1 - Trait::kTargetMutatorUtilization); in DynamicGrowingFactor()
106 const double b = speed_ratio * (1 - Trait::kTargetMutatorUtilization) - in DynamicGrowingFactor()
107 Trait::kTargetMutatorUtilization; in DynamicGrowingFactor()
112 factor = std::max({factor, Trait::kMinGrowingFactor}); in DynamicGrowingFactor()
116 template <typename Trait>
117 size_t MemoryController<Trait>::MinimumAllocationLimitGrowingStep( in MinimumAllocationLimitGrowingStep()
127 template <typename Trait>
128 size_t MemoryController<Trait>::CalculateAllocationLimit( in CalculateAllocationLimit()
135 factor = std::min({factor, Trait::kConservativeGrowingFactor}); in CalculateAllocationLimit()
138 factor = Trait::kMinGrowingFactor; in CalculateAllocationLimit()
163 Trait::kName, current_size / KB, result / KB, factor); in CalculateAllocationLimit()