-
Couldn't load subscription status.
- Fork 78
Allow MockVM to run GC #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Allow MockVM to run GC #1408
Changes from all commits
dfb210a
b9e8284
9ef3602
ed9f813
4da090c
3784fff
2aaeac9
a97d54b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ dummyvm_toml=$project_root/docs/dummyvm/Cargo.toml | |
|
|
||
| # Pin certain deps for our MSRV | ||
| cargo update -p [email protected] --precise 0.5.5 # This can be removed once we move to Rust 1.81 or newer | ||
| cargo update -p [email protected] --precise 0.5.5 # This requires Rust edition 2024 | ||
|
|
||
| # Repeat a command for all the features. Requires the command as one argument (with double quotes) | ||
| for_all_features() { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,10 @@ impl<VM: VMBinding, S: LinearScanObjectSize, const ATOMIC_LOAD_VO_BIT: bool> std | |
|
|
||
| fn next(&mut self) -> Option<<Self as Iterator>::Item> { | ||
| while self.cursor < self.end { | ||
| if !self.cursor.is_aligned_to(ObjectReference::ALIGNMENT) { | ||
| self.cursor += VM::MIN_ALIGNMENT; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently |
||
| continue; | ||
| } | ||
| let is_object = if ATOMIC_LOAD_VO_BIT { | ||
| vo_bit::is_vo_bit_set_for_addr(self.cursor) | ||
| } else { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where I think
Option<NonZeroAddress>can be useful. See #1223