Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply PROTOBUF_NOINLINE to declarations of some functions that want it.
Clang's ThinLTO does not know to honor __attribute__((noinline)) on the definition in a .cc file if the declaration in a .h file did not also have the attribute. This can lead to unwanted cross-translation-unit inlining contributing to stack overflow in deeply recursive protobuf parses, but only in sufficiently vigorously optimized release builds. PiperOrigin-RevId: 573266335
- Loading branch information