platform_build_blueprint/proptools
Paul Duffin 2aa510c27b Always shard structs if they would exceed maxNameSize even if unfiltered
Previously, a struct (anonymous or named) whose fields all matched the
predicate would not be sharded and would simply be reused. However,
that could break the maxNameSize limitation which could cause problems
for the caller.

This change makes sure that the supplied struct is only reused if it
does not exceed the maxNameSize, and otherwise is sharded.

Bug: 183777071
Test: m nothing
Change-Id: I8af272ec121077a43333e72b67cfd0e493c83362
2021-03-26 09:59:19 +00:00
..
clone.go Make proptools functions consistently take *struct types 2020-01-28 09:51:19 -08:00
clone_test.go Make proptools functions consistently take *struct types 2020-01-28 09:51:19 -08:00
escape.go Add ShellEscapeIncludingSpaces(string) 2021-03-12 14:37:42 +09:00
escape_test.go Add ShellEscapeIncludingSpaces(string) 2021-03-12 14:37:42 +09:00
extend.go Add isStruct and isStructPtr helpers 2020-01-28 09:51:19 -08:00
extend_test.go Implement list of maps 2020-03-02 17:26:20 -08:00
filter.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
filter_test.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
proptools.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
proptools_test.go Fix PropertyNameForField for X86. 2020-02-05 17:13:08 -08:00
tag.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
tag_test.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
typeequal.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
typeequal_test.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
unpack.go Fix silently ignoring values assigned to map properties 2021-01-15 22:21:28 -08:00
unpack_test.go Fix silently ignoring values assigned to map properties 2021-01-15 22:21:28 -08:00