diff options
author | 2020-01-17 14:08:22 -0800 | |
---|---|---|
committer | 2020-01-21 11:54:53 -0800 | |
commit | cbbd13f9bc10bbd9b026b0e3db02a1c164c46e0e (patch) | |
tree | 11bfba82b67235a65fde371a70e2888e90ac76f5 /android/singleton.go | |
parent | a929cd52ce5139c4338599dd4b28bc72f1611a9d (diff) |
Split the runtime arch property structs into 3
Instead of creating a runtime generated struct type:
struct {
Arch struct {
Arm struct {
Armv7-a struct {
...
}
}
...
}
Multilib struct {
Lib32 struct {
...
}
...
}
Target struct {
Android struct {
...
}
...
}
}
Replace it with a top-level struct of empty interfaces:
type archPropRoot struct {
Arch, Multilib, Target interface{}
}
And then embed nil pointers to smaller structs inside it:
struct {
Arm struct {
Armv7-a struct {
...
}
}
...
}
This reduces the maximum number of times the archecture specific
properties are embedded in a runtime generated struct from 139
to 97, which makes it easier to avoid hitting the runtime generated
struct name size limit of 64kB.
Bug: 146234651
Test: all soong tests
Change-Id: I901c434ac9a1d99c74fc2370c5e6803b3682dc73
Diffstat (limited to 'android/singleton.go')
0 files changed, 0 insertions, 0 deletions