MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Grow

Method Grow

eval/eval/evaluator_stack.cc:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace google::api::expr::runtime {
17
18void EvaluatorStack::Grow() {
19 const size_t new_max_size = std::max(max_size() * 2, size_t{1});
20 ABSL_LOG(ERROR) << "evaluation stack is unexpectedly full: growing from "
21 << max_size() << " to " << new_max_size
22 << " as a last resort to avoid crashing: this should not "
23 "have happened so there must be a bug somewhere in "
24 "the planner or evaluator";
25 Reserve(new_max_size);
26}
27
28void EvaluatorStack::Reserve(size_t size) {
29 static_assert(alignof(cel::Value) <= __STDCPP_DEFAULT_NEW_ALIGNMENT__);

Callers

nothing calls this directly

Calls 1

max_sizeFunction · 0.50

Tested by

no test coverage detected