+1448
−4
File changed.
Preview size limit exceeded, changes collapsed.
+2
−1344
File changed.
Preview size limit exceeded, changes collapsed.
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
There are currently two copies of DwarfOp callback tables in data.rel.ro section, and that is 16KB of dirty memory per process on a 64-bit platform. To reduce memory usage, we introduce a layer of indirection so that all instances of DwarfOp can share a single callback table. We also get rid of the pointers for op names in the callback table so that the entire table can be placed in rodata section. Test result shows 1MB saving on cuttlefish, and 750KB saving on a Go device (32-bit ARM). Bug: 112073665 Test: Boot on cuttlefish and a Go device. Change-Id: Idf90a513f37534ab1ef30d5742a9d3ea779f3661
File changed.
Preview size limit exceeded, changes collapsed.
File changed.
Preview size limit exceeded, changes collapsed.