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

Commit 51c7ad7

Browse files
authored
Merge pull request #134 from brion/fallibility
Add language to MVP.md about failure modes
2 parents a98c15c + d71b48d commit 51c7ad7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

proposals/gc/MVP.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ In particular, `ref.null` is typed as before, despite the introduction of `none`
493493

494494
#### Structures
495495

496+
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.
497+
496498
* `struct.new <typeidx>` allocates a structure with canonical [RTT](#values) and initialises its fields with given values
497499
- `struct.new $t : [t'*] -> [(ref $t)]`
498500
- iff `expand($t) = struct (mut t'')*`

0 commit comments

Comments
 (0)