Skip to content
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

Fix compiler errors and warnings for Rust 1.78.0 #1132

Merged
merged 3 commits into from
May 6, 2024

Conversation

wks
Copy link
Collaborator

@wks wks commented May 6, 2024

ScanObjectsWork::make_another is unused. It was used when ScanObjectsWork was used for scanning node roots. Now that node roots are scanned by the dedicated ProcessRootNode work packet, we can remove it.

WorkCounter::get_base_mut is never used. All derived counters use merge_val to update all fields at the same time.

We use Box::as_ref() to get the reference to its underlying element. It fixes a compilation error related to CommonFreeListPageResource. But we should eventually remove CommonFreeListPageResource completely as it is a workaround for mimicking the legacy design from JikesRVM that allow VMMap to enumerate and patch existing FreeListPageResource instances by registering them in a global list, which is not idiomatic in Rust. See #934 and #953.

`ScanObjectsWork::make_another` is unused.  It was used when
`ScanObjectsWork` was used for scanning node roots.  Now that node roots
are scanned by the dedicated `ProcessRootNode` work packet, we can
remove it.

`WorkCounter::get_base_mut` is never used.  All derived counters use
`merge_val` to update all fields at the same time.

We use `Box::as_ref()` to get the reference to its underlying element.
It fixes a compilation error related to CommonFreeListPageResource.  But
we should eventually remove CommonFreeListPageResource completely as it
is a workaround for mimicking the legacy design from JikesRVM that allow
VMMap to enumerate and patch existing FreeListPageResource instances by
registering them in a global list, which is not idiomatic in Rust.  See
mmtk#934 and
mmtk#953
@wks wks requested a review from qinsoon May 6, 2024 03:34
Copy link
Member

@qinsoon qinsoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/policy/sft_map.rs Outdated Show resolved Hide resolved
@wks wks enabled auto-merge May 6, 2024 05:13
@wks wks added this pull request to the merge queue May 6, 2024
Merged via the queue into mmtk:master with commit 5f955bc May 6, 2024
23 checks passed
@wks wks deleted the fix-common_flpr-cast branch May 6, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants