Skip to content

Closure::ToCString allocates heap memory which upsets vm/cc/ToCString test #61716

@mraleph

Description

@mraleph

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions