Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b6b2014 authored by Kevin Jeon's avatar Kevin Jeon
Browse files

Update VmaCallbacks to return bool

A change to libmeminfo now requires that VmaCallbacks return a bool
value. This updates the existing usages in frameworks/base with
effectively no-op 'return true's.

Test: n/a
Bug: 320480542
Change-Id: I9a2894b9beec8d4a13887a1c9444f2ebc5036343
parent ea0c498c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -410,6 +410,7 @@ static bool load_maps(int pid, stats_t* stats, bool* foundSwapPss)
            stats[sub_heap].swappedOut += usage.swap;
            stats[sub_heap].swappedOutPss += usage.swap_pss;
        }
        return true;
    };

    return meminfo::ForEachVmaFromFile(smaps_path, vma_scan);
+1 −0
Original line number Diff line number Diff line
@@ -387,6 +387,7 @@ static int64_t compactProcess(int pid, VmaToAdviseFunc vmaToAdviseFunc) {
                ++pageoutVmaIndex;
                break;
        }
        return true;
    };
    meminfo.ForEachVmaFromMaps(vmaCollectorCb, mapsBuffer);
    ATRACE_END();