Skip to content

Commit

Permalink
recursive guard
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Feb 12, 2025
1 parent d2981b7 commit e2274bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gnovm/pkg/gnolang/realm.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ func checkCrossRealm2(rlm *Realm, store Store, tv *TypedValue, isLastRef bool) {
return
}
}
if hiv, ok := reo.(*HeapItemValue); ok {
debug2.Println2("hiv: ", hiv)
if hiv.Value == *pv.TV {
return
}
}
}

reo.SetOriginRealm(tv2.GetOriginPkg(store))
Expand Down

0 comments on commit e2274bc

Please sign in to comment.