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

Commit 8cef02d1 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: ProcessState - force mark SM stability

We have a 'tryMarkCompilationStability' here which should never fail,
and is not error checked. Strengthening this check, since RPC
root/context services will have a similarly strengthened check.

Bug: 167966510
Test: boot
Change-Id: Ie82b06df2dcb7cd5c41fd17d12f406775b6013f7
parent 4aaa3105
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ sp<IBinder> ProcessState::getContextObject(const sp<IBinder>& /*caller*/)

    // The root object is special since we get it directly from the driver, it is never
    // written by Parcell::writeStrongBinder.
    internal::Stability::tryMarkCompilationUnit(context.get());
    internal::Stability::markCompilationUnit(context.get());

    return context;
}