From 14e4cfae36aa878c6a9838299bc7b9aa42a16dfa Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 3 Jun 2021 21:40:45 +0000 Subject: libbinder: +2 bytes in BBinder from stability rep sizeof(BBinder) may not be changed unless 1,000s of people in many different companies fundamentally change the way they work. So, with precious few bits to spare, we make room by changing the way that binder stability reserves space on the wire. Now, it uses the least significant 16-bits of the 32-bits which is reserved on the wire. The sideeffect of this straightforward implementation is that the wire protocol is slightly changed. This is an intentional change in order to exercise its instability, perhaps as an early warning. Bug: 166282674 Test: boot, binderLibTest Change-Id: I654fcd2cc9d20cbac557d1a176a5095c491d88cf --- libs/binder/Stability.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'libs/binder/Stability.cpp') diff --git a/libs/binder/Stability.cpp b/libs/binder/Stability.cpp index 601ce96db6..dac381974e 100644 --- a/libs/binder/Stability.cpp +++ b/libs/binder/Stability.cpp @@ -33,7 +33,6 @@ constexpr uint8_t kBinderWireFormatVersion = 1; Stability::Category Stability::Category::currentFromLevel(Level level) { return { .version = kBinderWireFormatVersion, - .reserved = {0}, .level = level, }; } -- cgit v1.2.3-59-g8ed1b