Returning a reference to a GUARDED_BY variable while only holding the lock in the getter lets callers access the variable without holding the lock. See https://github.com/llvm/llvm-project/pull/67776. This is only used for testing, so just return a copy for simplicity. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> |
||
|---|---|---|
| .. | ||
| abseil-cpp | ||
| android/test/interop | ||
| benchmark | ||
| boringssl | ||
| c-ares | ||
| compiler | ||
| core | ||
| cpp | ||
| csharp | ||
| objective-c | ||
| php | ||
| proto | ||
| python | ||
| ruby | ||