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
Loading
Please register or sign in to comment