Skip to content

Commit 875968a

Browse files
qinsoonwks
andauthored
Update src/memory_manager.rs
Co-authored-by: Kunshan Wang <wks1986@gmail.com>
1 parent 07a01c7 commit 875968a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/memory_manager.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ pub fn flush_mutator<VM: VMBinding>(mutator: &mut Mutator<VM>) {
149149
///
150150
/// If MMTk fails to allocate memory, it will attempt a GC to free up some memory and retry the
151151
/// allocation. After triggering GC, it will call [`crate::vm::Collection::block_for_gc`] to suspend
152-
/// the current thread that is allocating. Callers of this function must be aware of this behavior.
152+
/// the current thread that is allocating. Callers of `alloc` must be aware of this behavior.
153153
/// For example, JIT compilers that support
154-
/// precise stack scanning need to make the call site a GC-safe point by generating stack maps. See
154+
/// precise stack scanning need to make the call site of `alloc` a GC-safe point by generating stack maps. See
155155
/// [`alloc_no_gc`] if it is undesirable to trigger GC at this allocation site.
156156
///
157157
/// If MMTk has attempted at least one GC, and still cannot free up enough memory, it will call

0 commit comments

Comments
 (0)