`Closure::ToCString` calls `Closure::GetInstantiatedSignature` which calls `FunctionType::InstantiateFrom` which needs to allocate instantiated type. We probably should split `Closure::ToCString` into safe and unsafe version. This was revealed by my changes in https://dart-review.googlesource.com/c/sdk/+/454062?tab=checks cc @rmacnak-google