Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
088c434d
There was an error fetching the commit references. Please try again later.
Commit
088c434d
authored
2 years ago
by
Liam
Browse files
Options
Downloads
Patches
Plain Diff
kernel: remove unnecessary finalize calls
parent
9863db9d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/hle/kernel/k_shared_memory.cpp
+0
-3
0 additions, 3 deletions
src/core/hle/kernel/k_shared_memory.cpp
src/core/hle/kernel/k_transfer_memory.cpp
+1
-4
1 addition, 4 deletions
src/core/hle/kernel/k_transfer_memory.cpp
with
1 addition
and
7 deletions
src/core/hle/kernel/k_shared_memory.cpp
+
0
−
3
View file @
088c434d
...
...
@@ -74,9 +74,6 @@ void KSharedMemory::Finalize() {
// Release the memory reservation.
m_resource_limit
->
Release
(
LimitableResource
::
PhysicalMemoryMax
,
m_size
);
m_resource_limit
->
Close
();
// Perform inherited finalization.
KAutoObjectWithSlabHeapAndContainer
<
KSharedMemory
,
KAutoObjectWithList
>::
Finalize
();
}
Result
KSharedMemory
::
Map
(
KProcess
&
target_process
,
VAddr
address
,
std
::
size_t
map_size
,
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/kernel/k_transfer_memory.cpp
+
1
−
4
View file @
088c434d
...
...
@@ -30,10 +30,7 @@ Result KTransferMemory::Initialize(VAddr address, std::size_t size,
R_SUCCEED
();
}
void
KTransferMemory
::
Finalize
()
{
// Perform inherited finalization.
KAutoObjectWithSlabHeapAndContainer
<
KTransferMemory
,
KAutoObjectWithList
>::
Finalize
();
}
void
KTransferMemory
::
Finalize
()
{}
void
KTransferMemory
::
PostDestroy
(
uintptr_t
arg
)
{
KProcess
*
owner
=
reinterpret_cast
<
KProcess
*>
(
arg
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment