Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

boot: Always impl Drop for MemoryMapBackingMemory#1248

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
phip1611 merged 1 commit intorust-osdev:mainfromnicholasbishop:bishop-mmap-drop
Jul 21, 2024

Conversation

nicholasbishop
Copy link
Member

Gating this oncfg(not(test)) isn't necessary; during unit testssystem_table_boot() will returnNone and so the drop won't do anything anyway.

Also fix a typo, excited -> exited.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See theRewriting History guide for help.
  • Update the changelog (if necessary)

Gating this on `cfg(not(test))` isn't necessary; during unit tests`system_table_boot()` will return `None` and so the drop won't do anythinganyway.Also fix a typo, excited -> exited.
@@ -1747,7 +1745,7 @@ impl Drop for MemoryMapBackingMemory {
log::error!("Failed to deallocate memory map: {e:?}");
}
} else {
log::debug!("Boot services are excited. Memory map won't be freed using the UEFI boot services allocator.");
Copy link
Member

Choose a reason for hiding this comment

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

Boot services areexcited

🤣

@phip1611phip1611 added this pull request to themerge queueJul 21, 2024
Merged via the queue intorust-osdev:main with commit2f806e3Jul 21, 2024
12 checks passed
@nicholasbishopnicholasbishop deleted the bishop-mmap-drop branchJuly 21, 2024 11:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@phip1611phip1611phip1611 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@nicholasbishop@phip1611

[8]ページ先頭

©2009-2025 Movatter.jp