Skip to content

Allow sending more kinds of objects between isolates #46623

@mkustermann

Description

@mkustermann

We would like to be able to loosen the current requirements on objects that can be sent between isolates through SendPorts. We can solve this once lightweight isolates are enabled by-default (see #36097) - which is slowly coming to its finishing line.

We want to allow sending:

  • Function types (formerly #44624, #44431)
  • Closures (formerly #40370)
  • Generic closures (formerly #40919)
  • StackTrace objects (no former issue, but lib_2/isolate/stacktrace_message_test fails)

Furthermore we want to:

  • Be less ambiguous about what can and cannot be sent across SendPorts.

Once lightweight isolate support (see #36097) has been enabled by-default (probably soon), we can easily add this support.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions