1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:28:11 +00:00

Change "retain" to "ref" in various comments.

This commit is contained in:
Andreas Kling 2019-06-21 18:40:24 +02:00
parent 90b1354688
commit c26e3ce86b
4 changed files with 6 additions and 6 deletions

View file

@ -2031,9 +2031,9 @@ size_t Process::amount_resident() const
size_t Process::amount_shared() const
{
// FIXME: This will double count if multiple regions use the same physical page.
// FIXME: It doesn't work at the moment, since it relies on PhysicalPage retain counts,
// FIXME: It doesn't work at the moment, since it relies on PhysicalPage ref counts,
// and each PhysicalPage is only reffed by its VMObject. This needs to be refactored
// so that every Region contributes +1 retain to each of its PhysicalPages.
// so that every Region contributes +1 ref to each of its PhysicalPages.
size_t amount = 0;
for (auto& region : m_regions) {
amount += region->amount_shared();