Skip to content

Commit

Permalink
Make memory check feature compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-blaeser committed Jun 27, 2024
1 parent e83e95b commit e00bafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/motoko-rts/src/gc/incremental/sanity_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<'a, M: Memory> MemoryChecker<'a, M> {
object.tag(),
|gc, field_address| {
let value = *field_address;
if value.is_ptr() {
if value.is_non_null_ptr() {
gc.check_object(value);
} else {
gc.check_object_header(value);
Expand All @@ -114,7 +114,7 @@ impl<'a, M: Memory> MemoryChecker<'a, M> {

unsafe fn check_object_header(&self, object: Value) {
let tag = object.tag();
assert!(tag >= TAG_OBJECT && tag <= TAG_NULL);
assert!(is_object_tag(tag));
object.check_forwarding_pointer();
if let CheckerMode::UpdateCompletion = self.mode {
// Forwarding is no longer allowed on a completed GC.
Expand Down

0 comments on commit e00bafb

Please sign in to comment.