mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
Kernel: Don't take MM lock in MemoryManager::dump_kernel_regions()
We have to hold the region tree lock while dumping its regions anyway, and taking the MM lock here was unnecessary.
This commit is contained in:
parent
05156cac94
commit
5beed613ca
1 changed files with 0 additions and 1 deletions
|
@ -1126,7 +1126,6 @@ void MemoryManager::dump_kernel_regions()
|
||||||
#endif
|
#endif
|
||||||
dbgln("BEGIN{} END{} SIZE{} ACCESS NAME",
|
dbgln("BEGIN{} END{} SIZE{} ACCESS NAME",
|
||||||
addr_padding, addr_padding, addr_padding);
|
addr_padding, addr_padding, addr_padding);
|
||||||
SpinlockLocker lock(s_mm_lock);
|
|
||||||
m_region_tree.with([&](auto& region_tree) {
|
m_region_tree.with([&](auto& region_tree) {
|
||||||
for (auto& region : region_tree.regions()) {
|
for (auto& region : region_tree.regions()) {
|
||||||
dbgln("{:p} -- {:p} {:p} {:c}{:c}{:c}{:c}{:c}{:c} {}",
|
dbgln("{:p} -- {:p} {:p} {:c}{:c}{:c}{:c}{:c}{:c} {}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue