Kernel: Make PhysicalPage::ref() use relaxed memory order
When incrementing a reference count, it should be sufficient to use relaxed ordering. Note that unref() still uses acquire-release.
This commit is contained in:
parent
032e06b762
commit
5a804b9a1d
Notes:
sideshowbarker
2024-07-17 07:48:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5a804b9a1d
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
void ref()
|
||||
{
|
||||
m_ref_count.fetch_add(1, AK::memory_order_acq_rel);
|
||||
m_ref_count.fetch_add(1, AK::memory_order_relaxed);
|
||||
}
|
||||
|
||||
void unref()
|
||||
|
|
Loading…
Add table
Reference in a new issue