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

Commit bfac2652 authored by Vladimir Marko's avatar Vladimir Marko
Browse files

Use @CriticalNative for writes in Parcel.

Make Parcel.nativeWrite{Int,Long,Float,Double}() return an
error code instead of throwing exceptions on error. This
allows markiong them as @CriticalNative but we must pass on
any errors from Java back to native for throwing exceptions.

This is a follow-up to commit
    b148b6c3

ParcelPerfTest results on blueline-userdebug with little
cores at fixed frequency 1420800, big cores off and the
vendor.thermal-engine stopped:
                    before after
timeWriteInt_mean:  168    68
timeWriteLong_mean: 164    67
(No benchmarks for writeFloat and writeDouble.)

Test: blueline-userdebug boots.
Change-Id: Iea4ef2a933a7e8115459ab1bc4d6235282b1ceb8
parent 47e8d788
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment