Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Add language to MVP.md about failure modes #134

Merged
merged 4 commits into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions proposals/gc/MVP.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ In particular, `ref.null` is typed as before, despite the introduction of `none`

#### Structures

Note: Allocation of memory objects may fail for implementation-specific reasons, such as system resource exhaustion or a host-defined limit, or being unable to fit a large array in available address space. Similar to stack overflow, allocation failure may materialise in an implementation-dependent way, such as trapping or terminating the host process. Implementors should be aware this may be used as a denial of service vector.

* `struct.new <typeidx>` allocates a structure with canonical [RTT](#values) and initialises its fields with given values
- `struct.new $t : [t'*] -> [(ref $t)]`
- iff `expand($t) = struct (mut t'')*`
Expand Down