Skip to content

Need to specify what happens in out of memory and stack situations #1033

@gbracha

Description

@gbracha

The spec is currently silent on what happens if an isolate runs out of heap or stack space.

Possibilities include:

  1. Throwing an exception (which could be caught by the Dart program). Experience from other languages indicates this is probably undesirable.
  2. Terminate the isolate.
  3. Suspend the isolate, and notify its spawner. This would likely be accomplished via an isolate lifecycle API that that reported on isolate death or near-death. We need such an API in any case.

TBD.

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions