mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Kernel: Add implied auto qualifiers in Memory
This commit is contained in:
parent
ae8c7eebbd
commit
1cdace7898
Notes:
sideshowbarker
2024-07-17 21:16:02 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 1cdace7898
Pull-request: https://github.com/SerenityOS/serenity/pull/11468
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo
5 changed files with 27 additions and 27 deletions
|
@ -261,7 +261,7 @@ void AnonymousVMObject::ensure_or_reset_cow_map()
|
|||
|
||||
bool AnonymousVMObject::should_cow(size_t page_index, bool is_shared) const
|
||||
{
|
||||
auto& page = physical_pages()[page_index];
|
||||
auto const& page = physical_pages()[page_index];
|
||||
if (page && (page->is_shared_zero_page() || page->is_lazy_committed_page()))
|
||||
return true;
|
||||
if (is_shared)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue