Skip to content

Commit

Permalink
Fix mention of to_object_reference() in comment (#998)
Browse files Browse the repository at this point in the history
Closes #890
  • Loading branch information
k-sareen authored Oct 25, 2023
1 parent 59ff055 commit a58246d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ pub fn is_live_object(object: ObjectReference) -> bool {
/// Check if `addr` is the address of an object reference to an MMTk object.
///
/// Concretely:
/// 1. Return true if `addr.to_object_reference()` is a valid object reference to an object in any
/// space in MMTk.
/// 1. Return true if `ObjectReference::from_raw_address(addr)` is a valid object reference to an
/// object in any space in MMTk.
/// 2. Also return true if there exists an `objref: ObjectReference` such that
/// - `objref` is a valid object reference to an object in any space in MMTk, and
/// - `lo <= objref.to_address() < hi`, where
Expand Down

0 comments on commit a58246d

Please sign in to comment.