mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-26 19:32:40 -06:00
kernel: remove unnecessary finalize calls
This commit is contained in:
parent
9863db9db4
commit
088c434d65
2 changed files with 1 additions and 7 deletions
|
@ -74,9 +74,6 @@ void KSharedMemory::Finalize() {
|
||||||
// Release the memory reservation.
|
// Release the memory reservation.
|
||||||
m_resource_limit->Release(LimitableResource::PhysicalMemoryMax, m_size);
|
m_resource_limit->Release(LimitableResource::PhysicalMemoryMax, m_size);
|
||||||
m_resource_limit->Close();
|
m_resource_limit->Close();
|
||||||
|
|
||||||
// Perform inherited finalization.
|
|
||||||
KAutoObjectWithSlabHeapAndContainer<KSharedMemory, KAutoObjectWithList>::Finalize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Result KSharedMemory::Map(KProcess& target_process, VAddr address, std::size_t map_size,
|
Result KSharedMemory::Map(KProcess& target_process, VAddr address, std::size_t map_size,
|
||||||
|
|
|
@ -30,10 +30,7 @@ Result KTransferMemory::Initialize(VAddr address, std::size_t size,
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
}
|
}
|
||||||
|
|
||||||
void KTransferMemory::Finalize() {
|
void KTransferMemory::Finalize() {}
|
||||||
// Perform inherited finalization.
|
|
||||||
KAutoObjectWithSlabHeapAndContainer<KTransferMemory, KAutoObjectWithList>::Finalize();
|
|
||||||
}
|
|
||||||
|
|
||||||
void KTransferMemory::PostDestroy(uintptr_t arg) {
|
void KTransferMemory::PostDestroy(uintptr_t arg) {
|
||||||
KProcess* owner = reinterpret_cast<KProcess*>(arg);
|
KProcess* owner = reinterpret_cast<KProcess*>(arg);
|
||||||
|
|
Loading…
Reference in a new issue