Coverage Report

Created: 2024-09-23 06:29

/src/abseil-cpp/absl/base/dynamic_annotations.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2017 The Abseil Authors.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
// This file defines dynamic annotations for use with dynamic analysis tool
16
// such as valgrind, PIN, etc.
17
//
18
// Dynamic annotation is a source code annotation that affects the generated
19
// code (that is, the annotation is not a comment). Each such annotation is
20
// attached to a particular instruction and/or to a particular object (address)
21
// in the program.
22
//
23
// The annotations that should be used by users are macros in all upper-case
24
// (e.g., ABSL_ANNOTATE_THREAD_NAME).
25
//
26
// Actual implementation of these macros may differ depending on the dynamic
27
// analysis tool being used.
28
//
29
// This file supports the following configurations:
30
// - Dynamic Annotations enabled (with static thread-safety warnings disabled).
31
//   In this case, macros expand to functions implemented by Thread Sanitizer,
32
//   when building with TSan. When not provided an external implementation,
33
//   dynamic_annotations.cc provides no-op implementations.
34
//
35
// - Static Clang thread-safety warnings enabled.
36
//   When building with a Clang compiler that supports thread-safety warnings,
37
//   a subset of annotations can be statically-checked at compile-time. We
38
//   expand these macros to static-inline functions that can be analyzed for
39
//   thread-safety, but afterwards elided when building the final binary.
40
//
41
// - All annotations are disabled.
42
//   If neither Dynamic Annotations nor Clang thread-safety warnings are
43
//   enabled, then all annotation-macros expand to empty.
44
45
#ifndef ABSL_BASE_DYNAMIC_ANNOTATIONS_H_
46
#define ABSL_BASE_DYNAMIC_ANNOTATIONS_H_
47
48
#include <stddef.h>
49
#include <stdint.h>
50
51
#include "absl/base/attributes.h"
52
#include "absl/base/config.h"
53
#ifdef __cplusplus
54
#include "absl/base/macros.h"
55
#endif
56
57
#ifdef ABSL_HAVE_HWADDRESS_SANITIZER
58
#include <sanitizer/hwasan_interface.h>
59
#endif
60
61
// TODO(rogeeff): Remove after the backward compatibility period.
62
#include "absl/base/internal/dynamic_annotations.h"  // IWYU pragma: export
63
64
// -------------------------------------------------------------------------
65
// Decide which features are enabled.
66
67
#ifdef ABSL_HAVE_THREAD_SANITIZER
68
69
#define ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED 1
70
#define ABSL_INTERNAL_READS_ANNOTATIONS_ENABLED 1
71
#define ABSL_INTERNAL_WRITES_ANNOTATIONS_ENABLED 1
72
#define ABSL_INTERNAL_ANNOTALYSIS_ENABLED 0
73
#define ABSL_INTERNAL_READS_WRITES_ANNOTATIONS_ENABLED 1
74
75
#else
76
77
#define ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED 0
78
#define ABSL_INTERNAL_READS_ANNOTATIONS_ENABLED 0
79
#define ABSL_INTERNAL_WRITES_ANNOTATIONS_ENABLED 0
80
81
// Clang provides limited support for static thread-safety analysis through a
82
// feature called Annotalysis. We configure macro-definitions according to
83
// whether Annotalysis support is available. When running in opt-mode, GCC
84
// will issue a warning, if these attributes are compiled. Only include them
85
// when compiling using Clang.
86
87
#if defined(__clang__)
88
#define ABSL_INTERNAL_ANNOTALYSIS_ENABLED 1
89
#if !defined(SWIG)
90
#define ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED 1
91
#endif
92
#else
93
#define ABSL_INTERNAL_ANNOTALYSIS_ENABLED 0
94
#endif
95
96
// Read/write annotations are enabled in Annotalysis mode; disabled otherwise.
97
#define ABSL_INTERNAL_READS_WRITES_ANNOTATIONS_ENABLED \
98
  ABSL_INTERNAL_ANNOTALYSIS_ENABLED
99
100
#endif  // ABSL_HAVE_THREAD_SANITIZER
101
102
#ifdef __cplusplus
103
#define ABSL_INTERNAL_BEGIN_EXTERN_C extern "C" {
104
#define ABSL_INTERNAL_END_EXTERN_C }  // extern "C"
105
0
#define ABSL_INTERNAL_GLOBAL_SCOPED(F) ::F
106
#define ABSL_INTERNAL_STATIC_INLINE inline
107
#else
108
#define ABSL_INTERNAL_BEGIN_EXTERN_C  // empty
109
#define ABSL_INTERNAL_END_EXTERN_C    // empty
110
#define ABSL_INTERNAL_GLOBAL_SCOPED(F) F
111
#define ABSL_INTERNAL_STATIC_INLINE static inline
112
#endif
113
114
// -------------------------------------------------------------------------
115
// Define race annotations.
116
117
#if ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED == 1
118
// Some of the symbols used in this section (e.g. AnnotateBenignRaceSized) are
119
// defined by the compiler-based sanitizer implementation, not by the Abseil
120
// library. Therefore they do not use ABSL_INTERNAL_C_SYMBOL.
121
122
// -------------------------------------------------------------
123
// Annotations that suppress errors. It is usually better to express the
124
// program's synchronization using the other annotations, but these can be used
125
// when all else fails.
126
127
// Report that we may have a benign race at `pointer`, with size
128
// "sizeof(*(pointer))". `pointer` must be a non-void* pointer. Insert at the
129
// point where `pointer` has been allocated, preferably close to the point
130
// where the race happens. See also ABSL_ANNOTATE_BENIGN_RACE_STATIC.
131
#define ABSL_ANNOTATE_BENIGN_RACE(pointer, description) \
132
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateBenignRaceSized)  \
133
  (__FILE__, __LINE__, pointer, sizeof(*(pointer)), description)
134
135
// Same as ABSL_ANNOTATE_BENIGN_RACE(`address`, `description`), but applies to
136
// the memory range [`address`, `address`+`size`).
137
#define ABSL_ANNOTATE_BENIGN_RACE_SIZED(address, size, description) \
138
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateBenignRaceSized)              \
139
  (__FILE__, __LINE__, address, size, description)
140
141
// Enable (`enable`!=0) or disable (`enable`==0) race detection for all threads.
142
// This annotation could be useful if you want to skip expensive race analysis
143
// during some period of program execution, e.g. during initialization.
144
#define ABSL_ANNOTATE_ENABLE_RACE_DETECTION(enable)        \
145
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateEnableRaceDetection) \
146
  (__FILE__, __LINE__, enable)
147
148
// -------------------------------------------------------------
149
// Annotations useful for debugging.
150
151
// Report the current thread `name` to a race detector.
152
#define ABSL_ANNOTATE_THREAD_NAME(name) \
153
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateThreadName)(__FILE__, __LINE__, name)
154
155
// -------------------------------------------------------------
156
// Annotations useful when implementing locks. They are not normally needed by
157
// modules that merely use locks. The `lock` argument is a pointer to the lock
158
// object.
159
160
// Report that a lock has been created at address `lock`.
161
#define ABSL_ANNOTATE_RWLOCK_CREATE(lock) \
162
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateRWLockCreate)(__FILE__, __LINE__, lock)
163
164
// Report that a linker initialized lock has been created at address `lock`.
165
#ifdef ABSL_HAVE_THREAD_SANITIZER
166
#define ABSL_ANNOTATE_RWLOCK_CREATE_STATIC(lock)          \
167
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateRWLockCreateStatic) \
168
  (__FILE__, __LINE__, lock)
169
#else
170
#define ABSL_ANNOTATE_RWLOCK_CREATE_STATIC(lock) \
171
  ABSL_ANNOTATE_RWLOCK_CREATE(lock)
172
#endif
173
174
// Report that the lock at address `lock` is about to be destroyed.
175
#define ABSL_ANNOTATE_RWLOCK_DESTROY(lock) \
176
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateRWLockDestroy)(__FILE__, __LINE__, lock)
177
178
// Report that the lock at address `lock` has been acquired.
179
// `is_w`=1 for writer lock, `is_w`=0 for reader lock.
180
#define ABSL_ANNOTATE_RWLOCK_ACQUIRED(lock, is_w)     \
181
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateRWLockAcquired) \
182
  (__FILE__, __LINE__, lock, is_w)
183
184
// Report that the lock at address `lock` is about to be released.
185
// `is_w`=1 for writer lock, `is_w`=0 for reader lock.
186
#define ABSL_ANNOTATE_RWLOCK_RELEASED(lock, is_w)     \
187
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateRWLockReleased) \
188
  (__FILE__, __LINE__, lock, is_w)
189
190
// Apply ABSL_ANNOTATE_BENIGN_RACE_SIZED to a static variable `static_var`.
191
#define ABSL_ANNOTATE_BENIGN_RACE_STATIC(static_var, description)      \
192
  namespace {                                                          \
193
  class static_var##_annotator {                                       \
194
   public:                                                             \
195
    static_var##_annotator() {                                         \
196
      ABSL_ANNOTATE_BENIGN_RACE_SIZED(&static_var, sizeof(static_var), \
197
                                      #static_var ": " description);   \
198
    }                                                                  \
199
  };                                                                   \
200
  static static_var##_annotator the##static_var##_annotator;           \
201
  }  // namespace
202
203
// Function prototypes of annotations provided by the compiler-based sanitizer
204
// implementation.
205
ABSL_INTERNAL_BEGIN_EXTERN_C
206
void AnnotateRWLockCreate(const char* file, int line,
207
                          const volatile void* lock);
208
void AnnotateRWLockCreateStatic(const char* file, int line,
209
                                const volatile void* lock);
210
void AnnotateRWLockDestroy(const char* file, int line,
211
                           const volatile void* lock);
212
void AnnotateRWLockAcquired(const char* file, int line,
213
                            const volatile void* lock, long is_w);  // NOLINT
214
void AnnotateRWLockReleased(const char* file, int line,
215
                            const volatile void* lock, long is_w);  // NOLINT
216
void AnnotateBenignRace(const char* file, int line,
217
                        const volatile void* address, const char* description);
218
void AnnotateBenignRaceSized(const char* file, int line,
219
                             const volatile void* address, size_t size,
220
                             const char* description);
221
void AnnotateThreadName(const char* file, int line, const char* name);
222
void AnnotateEnableRaceDetection(const char* file, int line, int enable);
223
ABSL_INTERNAL_END_EXTERN_C
224
225
#else  // ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED == 0
226
227
#define ABSL_ANNOTATE_RWLOCK_CREATE(lock)                            // empty
228
#define ABSL_ANNOTATE_RWLOCK_CREATE_STATIC(lock)                     // empty
229
#define ABSL_ANNOTATE_RWLOCK_DESTROY(lock)                           // empty
230
#define ABSL_ANNOTATE_RWLOCK_ACQUIRED(lock, is_w)                    // empty
231
#define ABSL_ANNOTATE_RWLOCK_RELEASED(lock, is_w)                    // empty
232
#define ABSL_ANNOTATE_BENIGN_RACE(address, description)              // empty
233
#define ABSL_ANNOTATE_BENIGN_RACE_SIZED(address, size, description)  // empty
234
#define ABSL_ANNOTATE_THREAD_NAME(name)                              // empty
235
#define ABSL_ANNOTATE_ENABLE_RACE_DETECTION(enable)                  // empty
236
#define ABSL_ANNOTATE_BENIGN_RACE_STATIC(static_var, description)    // empty
237
238
#endif  // ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED
239
240
// -------------------------------------------------------------------------
241
// Define memory annotations.
242
243
#ifdef ABSL_HAVE_MEMORY_SANITIZER
244
245
#include <sanitizer/msan_interface.h>
246
247
#define ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(address, size) \
248
  __msan_unpoison(address, size)
249
250
#define ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(address, size) \
251
  __msan_allocated_memory(address, size)
252
253
#else  // !defined(ABSL_HAVE_MEMORY_SANITIZER)
254
255
#define ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(address, size)    // empty
256
#define ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(address, size)  // empty
257
258
#endif  // ABSL_HAVE_MEMORY_SANITIZER
259
260
// -------------------------------------------------------------------------
261
// Define IGNORE_READS_BEGIN/_END attributes.
262
263
#if defined(ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED)
264
265
#define ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE \
266
  __attribute((exclusive_lock_function("*")))
267
#define ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE \
268
  __attribute((unlock_function("*")))
269
270
#else  // !defined(ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED)
271
272
#define ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE  // empty
273
#define ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE    // empty
274
275
#endif  // defined(ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED)
276
277
// -------------------------------------------------------------------------
278
// Define IGNORE_READS_BEGIN/_END annotations.
279
280
#if ABSL_INTERNAL_READS_ANNOTATIONS_ENABLED == 1
281
// Some of the symbols used in this section (e.g. AnnotateIgnoreReadsBegin) are
282
// defined by the compiler-based implementation, not by the Abseil
283
// library. Therefore they do not use ABSL_INTERNAL_C_SYMBOL.
284
285
// Request the analysis tool to ignore all reads in the current thread until
286
// ABSL_ANNOTATE_IGNORE_READS_END is called. Useful to ignore intentional racey
287
// reads, while still checking other reads and all writes.
288
// See also ABSL_ANNOTATE_UNPROTECTED_READ.
289
#define ABSL_ANNOTATE_IGNORE_READS_BEGIN()              \
290
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreReadsBegin) \
291
  (__FILE__, __LINE__)
292
293
// Stop ignoring reads.
294
#define ABSL_ANNOTATE_IGNORE_READS_END()              \
295
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreReadsEnd) \
296
  (__FILE__, __LINE__)
297
298
// Function prototypes of annotations provided by the compiler-based sanitizer
299
// implementation.
300
ABSL_INTERNAL_BEGIN_EXTERN_C
301
void AnnotateIgnoreReadsBegin(const char* file, int line)
302
    ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE;
303
void AnnotateIgnoreReadsEnd(const char* file,
304
                            int line) ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE;
305
ABSL_INTERNAL_END_EXTERN_C
306
307
#elif defined(ABSL_INTERNAL_ANNOTALYSIS_ENABLED)
308
309
// When Annotalysis is enabled without Dynamic Annotations, the use of
310
// static-inline functions allows the annotations to be read at compile-time,
311
// while still letting the compiler elide the functions from the final build.
312
//
313
// TODO(delesley) -- The exclusive lock here ignores writes as well, but
314
// allows IGNORE_READS_AND_WRITES to work properly.
315
316
#define ABSL_ANNOTATE_IGNORE_READS_BEGIN()                          \
317
0
  ABSL_INTERNAL_GLOBAL_SCOPED(                                      \
318
0
      ABSL_INTERNAL_C_SYMBOL(AbslInternalAnnotateIgnoreReadsBegin)) \
319
0
  ()
320
321
#define ABSL_ANNOTATE_IGNORE_READS_END()                          \
322
0
  ABSL_INTERNAL_GLOBAL_SCOPED(                                    \
323
0
      ABSL_INTERNAL_C_SYMBOL(AbslInternalAnnotateIgnoreReadsEnd)) \
324
0
  ()
325
326
ABSL_INTERNAL_STATIC_INLINE void ABSL_INTERNAL_C_SYMBOL(
327
    AbslInternalAnnotateIgnoreReadsBegin)()
328
0
    ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE {}
329
330
ABSL_INTERNAL_STATIC_INLINE void ABSL_INTERNAL_C_SYMBOL(
331
    AbslInternalAnnotateIgnoreReadsEnd)()
332
0
    ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE {}
333
334
#else
335
336
#define ABSL_ANNOTATE_IGNORE_READS_BEGIN()  // empty
337
#define ABSL_ANNOTATE_IGNORE_READS_END()    // empty
338
339
#endif
340
341
// -------------------------------------------------------------------------
342
// Define IGNORE_WRITES_BEGIN/_END annotations.
343
344
#if ABSL_INTERNAL_WRITES_ANNOTATIONS_ENABLED == 1
345
346
// Similar to ABSL_ANNOTATE_IGNORE_READS_BEGIN, but ignore writes instead.
347
#define ABSL_ANNOTATE_IGNORE_WRITES_BEGIN() \
348
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreWritesBegin)(__FILE__, __LINE__)
349
350
// Stop ignoring writes.
351
#define ABSL_ANNOTATE_IGNORE_WRITES_END() \
352
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreWritesEnd)(__FILE__, __LINE__)
353
354
// Function prototypes of annotations provided by the compiler-based sanitizer
355
// implementation.
356
ABSL_INTERNAL_BEGIN_EXTERN_C
357
void AnnotateIgnoreWritesBegin(const char* file, int line);
358
void AnnotateIgnoreWritesEnd(const char* file, int line);
359
ABSL_INTERNAL_END_EXTERN_C
360
361
#else
362
363
#define ABSL_ANNOTATE_IGNORE_WRITES_BEGIN()  // empty
364
#define ABSL_ANNOTATE_IGNORE_WRITES_END()    // empty
365
366
#endif
367
368
// -------------------------------------------------------------------------
369
// Define the ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_* annotations using the more
370
// primitive annotations defined above.
371
//
372
//     Instead of doing
373
//        ABSL_ANNOTATE_IGNORE_READS_BEGIN();
374
//        ... = x;
375
//        ABSL_ANNOTATE_IGNORE_READS_END();
376
//     one can use
377
//        ... = ABSL_ANNOTATE_UNPROTECTED_READ(x);
378
379
#if defined(ABSL_INTERNAL_READS_WRITES_ANNOTATIONS_ENABLED)
380
381
// Start ignoring all memory accesses (both reads and writes).
382
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() \
383
0
  do {                                                \
384
0
    ABSL_ANNOTATE_IGNORE_READS_BEGIN();               \
385
0
    ABSL_ANNOTATE_IGNORE_WRITES_BEGIN();              \
386
0
  } while (0)
387
388
// Stop ignoring both reads and writes.
389
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_END() \
390
0
  do {                                              \
391
0
    ABSL_ANNOTATE_IGNORE_WRITES_END();              \
392
0
    ABSL_ANNOTATE_IGNORE_READS_END();               \
393
0
  } while (0)
394
395
#ifdef __cplusplus
396
// ABSL_ANNOTATE_UNPROTECTED_READ is the preferred way to annotate racey reads.
397
#define ABSL_ANNOTATE_UNPROTECTED_READ(x) \
398
  absl::base_internal::AnnotateUnprotectedRead(x)
399
400
namespace absl {
401
ABSL_NAMESPACE_BEGIN
402
namespace base_internal {
403
404
template <typename T>
405
inline T AnnotateUnprotectedRead(const volatile T& x) {  // NOLINT
406
  ABSL_ANNOTATE_IGNORE_READS_BEGIN();
407
  T res = x;
408
  ABSL_ANNOTATE_IGNORE_READS_END();
409
  return res;
410
}
411
412
}  // namespace base_internal
413
ABSL_NAMESPACE_END
414
}  // namespace absl
415
#endif
416
417
#else
418
419
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN()  // empty
420
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_END()    // empty
421
#define ABSL_ANNOTATE_UNPROTECTED_READ(x) (x)
422
423
#endif
424
425
// -------------------------------------------------------------------------
426
// Address sanitizer annotations
427
428
#ifdef ABSL_HAVE_ADDRESS_SANITIZER
429
// Describe the current state of a contiguous container such as e.g.
430
// std::vector or std::string. For more details see
431
// sanitizer/common_interface_defs.h, which is provided by the compiler.
432
#include <sanitizer/common_interface_defs.h>
433
434
#define ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(beg, end, old_mid, new_mid) \
435
  __sanitizer_annotate_contiguous_container(beg, end, old_mid, new_mid)
436
#define ABSL_ADDRESS_SANITIZER_REDZONE(name) \
437
  struct {                                   \
438
    alignas(8) char x[8];                    \
439
  } name
440
441
#else
442
443
#define ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(beg, end, old_mid, new_mid)  // empty
444
#define ABSL_ADDRESS_SANITIZER_REDZONE(name) static_assert(true, "")
445
446
#endif  // ABSL_HAVE_ADDRESS_SANITIZER
447
448
// -------------------------------------------------------------------------
449
// HWAddress sanitizer annotations
450
451
#ifdef __cplusplus
452
namespace absl {
453
#ifdef ABSL_HAVE_HWADDRESS_SANITIZER
454
// Under HWASAN changes the tag of the pointer.
455
template <typename T>
456
T* HwasanTagPointer(T* ptr, uintptr_t tag) {
457
  return reinterpret_cast<T*>(__hwasan_tag_pointer(ptr, tag));
458
}
459
#else
460
template <typename T>
461
T* HwasanTagPointer(T* ptr, uintptr_t) {
462
  return ptr;
463
}
464
#endif
465
}  // namespace absl
466
#endif
467
468
// -------------------------------------------------------------------------
469
// Undefine the macros intended only for this file.
470
471
#undef ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED
472
#undef ABSL_INTERNAL_READS_ANNOTATIONS_ENABLED
473
#undef ABSL_INTERNAL_WRITES_ANNOTATIONS_ENABLED
474
#undef ABSL_INTERNAL_ANNOTALYSIS_ENABLED
475
#undef ABSL_INTERNAL_READS_WRITES_ANNOTATIONS_ENABLED
476
#undef ABSL_INTERNAL_BEGIN_EXTERN_C
477
#undef ABSL_INTERNAL_END_EXTERN_C
478
#undef ABSL_INTERNAL_STATIC_INLINE
479
480
#endif  // ABSL_BASE_DYNAMIC_ANNOTATIONS_H_