commit | ab2c6aa021e9ea7ada1b606ec76b8a24335453cb | [log] [tgz] |
---|---|---|
author | Peter Kalauskas <peskal@google.com> | Tue Nov 22 12:57:40 2022 -0800 |
committer | Peter Kalauskas <peskal@google.com> | Thu Dec 01 21:40:56 2022 +0000 |
tree | 82c6ed9ac41fc79824d70924dcddcb956d53d4ca | |
parent | 46917e533615c8cf66754b96885155e847ed2ef2 [diff] |
Guard against possible exception when tracing Trace.beginSection() throws an IllegalArgumentException if section name is longer than 127 chars. Therefore, it shouldn't be used anytime a string name is generated at runtime. Instead, replace with equivalent call to Trace.traceBegin(). Also, guard against StringBuilder GC garbage while tracing. Test: manual Bug: 257075630 Change-Id: Ia3477dc98b7d87f6fcd0c4f2e0aaad976f2203a2