1
Fork 0
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:
Andreas Kling 2022-08-24 16:07:29 +02:00
parent 032e06b762
commit 5a804b9a1d

View file

@ -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()