Skip to content

Commit fe9abd9

Browse files
authored
Update memory_manager.rs
1 parent 7b10f11 commit fe9abd9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/memory_manager.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,12 @@ pub fn total_bytes<VM: VMBinding>(mmtk: &MMTK<VM>) -> usize {
566566
mmtk.get_plan().get_total_pages() << LOG_BYTES_IN_PAGE
567567
}
568568

569-
/// Trigger a garbage collection as requested by the user. Returns whether a GC was ran or not.
569+
/// The application code has requested a collection. This is just a GC hint, and
570+
/// we may ignore it.
571+
///
572+
/// Returns whether a GC was ran or not. If MMTk triggers a GC, this method will block the
573+
/// calling thread and return true when the GC finishes. Otherwise, this method returns
574+
/// false immediately.
570575
///
571576
/// Arguments:
572577
/// * `mmtk`: A reference to an MMTk instance.

0 commit comments

Comments
 (0)