You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use explicit storage for ActionReturnStatus::c_str (#34746)
* Use explicit storage for ActionReturnStatus::c_str
Allocating some global storage for this is both not thread-safe
and wastes RAM.
Use the stack for the tiny amount of storage (relatively ... same as 4
integers) that a return status string needs.
* Add unit tests and fix concatenation bug
* Restyle
* Undo header addition that seems wrong
* Update comment to justify chosen storage size
* Restyle
* Fix unit test
---------
Co-authored-by: Andrei Litvin <andreilitvin@google.com>
0 commit comments