Skip to content

Commit a58246d

Browse files
authored
Fix mention of to_object_reference() in comment (#998)
Closes #890
1 parent 59ff055 commit a58246d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/memory_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ pub fn is_live_object(object: ObjectReference) -> bool {
631631
/// Check if `addr` is the address of an object reference to an MMTk object.
632632
///
633633
/// Concretely:
634-
/// 1. Return true if `addr.to_object_reference()` is a valid object reference to an object in any
635-
/// space in MMTk.
634+
/// 1. Return true if `ObjectReference::from_raw_address(addr)` is a valid object reference to an
635+
/// object in any space in MMTk.
636636
/// 2. Also return true if there exists an `objref: ObjectReference` such that
637637
/// - `objref` is a valid object reference to an object in any space in MMTk, and
638638
/// - `lo <= objref.to_address() < hi`, where

0 commit comments

Comments
 (0)