Skip to content

Commit 80b11a0

Browse files
authored
Remove space for nogc link (#1217)
1 parent 0883898 commit 80b11a0

File tree

1 file changed

+1
-2
lines changed
  • docs/userguide/src/portingguide/howto

1 file changed

+1
-2
lines changed

docs/userguide/src/portingguide/howto/nogc.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ steps into one function call to make things simpler.
156156
2. Create an `MMTK` instance via [`memory_manager::mmtk_init()`](https://docs.mmtk.io/api/mmtk/memory_manager/fn.mmtk_init.html). This
157157
enables the binding to use most of the MMTk APIs in [`memory_manager`](https://docs.mmtk.io/api/mmtk/memory_manager/index.html), as most
158158
APIs require a reference to `MMTK`.
159-
3. When the runtime is ready for GCs (including getting its thread system ready to spawn GC threads), it is expected to call [`memory_manager::initialize_collection`]
160-
(https://docs.mmtk.io/api/mmtk/memory_manager/fn.initialize_collection.html). Once the function returns, MMTk may trigger a GC at any appropriate time.
159+
3. When the runtime is ready for GCs (including getting its thread system ready to spawn GC threads), it is expected to call [`memory_manager::initialize_collection`](https://docs.mmtk.io/api/mmtk/memory_manager/fn.initialize_collection.html). Once the function returns, MMTk may trigger a GC at any appropriate time.
161160
In terms of getting NoGC to work, this step is optional, as NoGC will not trigger GCs.
162161

163162
In practice, it greatly depends on the runtime about how to expose the MMTk's Rust API above to native, and when to call the native API in the runtime.

0 commit comments

Comments
 (0)