mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public:
|
||||||
|
|
||||||
void ref()
|
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()
|
void unref()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue