Skip to content

Commit cb2fbee

Browse files
docs: address Copilot review comments
1 parent ed70757 commit cb2fbee

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

docs/start/wasmedge/extensions/gc.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 2
2+
sidebar_position: 3
33
---
44

55
# Garbage Collection
@@ -10,7 +10,7 @@ WasmEdge supports the [WebAssembly Garbage Collection (GC) proposal](https://git
1010

1111
Normally, WebAssembly manages memory manually — programs allocate and free memory themselves using linear memory. The GC proposal adds first-class garbage-collected types: **structs** (fixed heterogeneous fields) and **arrays** (homogeneous elements), both allocated on the heap and automatically reclaimed when no longer reachable.
1212

13-
This is enabled by default in WasmEdge since `0.16.0`. You can disable it with the `--disable-gc` CLI flag if needed.
13+
This is enabled by default in WasmEdge since `0.16.0`. For WasmEdge `0.14.x``0.15.x`, enable it explicitly with the (deprecated) `--enable-gc` flag; you can disable GC with `--disable-gc` when needed.
1414

1515
## Prerequisites
1616

@@ -122,9 +122,10 @@ To configure GC support programmatically via the WasmEdge C API, use the `WasmEd
122122

123123
```c
124124
WasmEdge_ConfigureContext *ConfCxt = WasmEdge_ConfigureCreate();
125-
// GC is enabled by default since 0.16.0.
126-
// To disable it:
125+
// WasmEdge 0.16.0+ enables GC by default; to disable it:
127126
WasmEdge_ConfigureRemoveProposal(ConfCxt, WasmEdge_Proposal_GC);
127+
// WasmEdge 0.14.x–0.15.x has GC off by default; to enable it instead:
128+
// WasmEdge_ConfigureAddProposal(ConfCxt, WasmEdge_Proposal_GC);
128129
```
129130
130131
## Language Support

docs/start/wasmedge/extensions/proposals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following proposals are under development and may be supported in the future
4747
[Component Model]: https://github.com/WebAssembly/component-model
4848
[Exception handling]: https://github.com/WebAssembly/exception-handling
4949
[Typed Function References]: https://github.com/WebAssembly/function-references
50-
[Garbage collection]: ./gc
50+
[Garbage collection]: ./gc.md
5151
[Relaxed SIMD]: https://github.com/WebAssembly/relaxed-simd
5252
[Memory64]: https://github.com/WebAssembly/memory64
5353
[WebAssembly C and C++ API]: https://github.com/WebAssembly/wasm-c-api

0 commit comments

Comments
 (0)