mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-29 04:08:46 +00:00
kern: General system stability improvements to enhance the user's experience.
This commit is contained in:
parent
2ad9927a88
commit
583899ede3
5 changed files with 20 additions and 4 deletions
|
@ -106,6 +106,16 @@ namespace ams::kern {
|
|||
return ResultSuccess();
|
||||
}
|
||||
|
||||
void KMemoryManager::FinalizeOptimizedMemory(u64 process_id, Pool pool) {
|
||||
/* Lock the pool. */
|
||||
KScopedLightLock lk(this->pool_locks[pool]);
|
||||
|
||||
/* If the process was optimized, clear it. */
|
||||
if (this->has_optimized_process[pool] && this->optimized_process_ids[pool] == process_id) {
|
||||
this->has_optimized_process[pool] = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
KVirtualAddress KMemoryManager::AllocateContinuous(size_t num_pages, size_t align_pages, u32 option) {
|
||||
/* Early return if we're allocating no pages. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue