diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-21 18:40:24 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-21 18:40:24 +0200 |
commit | c26e3ce86b6a8d38b0c74a92620bc6d46088c954 (patch) | |
tree | 9b6c5f7236c6b3a5f0b2e0c3914713981066f1da /Kernel | |
parent | 90b1354688e988ba1311a5645f631d353fa7ff80 (diff) | |
download | serenity-c26e3ce86b6a8d38b0c74a92620bc6d46088c954.zip |
Change "retain" to "ref" in various comments.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.cpp | 4 | ||||
-rw-r--r-- | Kernel/TTY/MasterPTY.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 52ff29dcca..aa18ee1131 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -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(); diff --git a/Kernel/TTY/MasterPTY.cpp b/Kernel/TTY/MasterPTY.cpp index 62502c2390..fa339786c9 100644 --- a/Kernel/TTY/MasterPTY.cpp +++ b/Kernel/TTY/MasterPTY.cpp @@ -63,8 +63,8 @@ void MasterPTY::notify_slave_closed(Badge<SlavePTY>) #ifdef MASTERPTY_DEBUG dbgprintf("MasterPTY(%u): slave closed, my retains: %u, slave retains: %u\n", m_index, ref_count(), m_slave->ref_count()); #endif - // +1 retain for my MasterPTY::m_slave - // +1 retain for FileDescription::m_device + // +1 ref for my MasterPTY::m_slave + // +1 ref for FileDescription::m_device if (m_slave->ref_count() == 2) m_slave = nullptr; } |