Skip to content

Commit 000e78c

Browse files
authored
Fix possible typo in mmtk_is_pointer_pinned (#250)
Seems like a typo: it looks like the `if else` branch should be handling objects that are managed by MMTk, but that are not in IMMIX space.
1 parent 4ada9ec commit 000e78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmtk/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ pub extern "C" fn mmtk_is_pointer_pinned(addr: Address) -> bool {
612612

613613
if crate::object_model::is_addr_in_immixspace(addr) {
614614
handle_potential_internal_pointer!(memory_manager::is_pinned, addr)
615-
} else if !mmtk_object_is_managed_by_mmtk(addr.as_usize()) {
615+
} else if mmtk_object_is_managed_by_mmtk(addr.as_usize()) {
616616
debug!(
617617
"Object is not in Immix space. MMTk will not move the object. We assume it is pinned."
618618
);

0 commit comments

Comments
 (0)