Coverage Report

Created: 2026-09-14 06:45

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/abseil-cpp/absl/base/dynamic_annotations.h
Line
Count
Source
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
#pragma GCC visibility push(default)
206
ABSL_INTERNAL_BEGIN_EXTERN_C
207
void AnnotateRWLockCreate(const char* file, int line,
208
                          const volatile void* lock);
209
void AnnotateRWLockCreateStatic(const char* file, int line,
210
                                const volatile void* lock);
211
void AnnotateRWLockDestroy(const char* file, int line,
212
                           const volatile void* lock);
213
void AnnotateRWLockAcquired(const char* file, int line,
214
                            const volatile void* lock, long is_w);  // NOLINT
215
void AnnotateRWLockReleased(const char* file, int line,
216
                            const volatile void* lock, long is_w);  // NOLINT
217
void AnnotateBenignRace(const char* file, int line,
218
                        const volatile void* address, const char* description);
219
void AnnotateBenignRaceSized(const char* file, int line,
220
                             const volatile void* address, size_t size,
221
                             const char* description);
222
void AnnotateThreadName(const char* file, int line, const char* name);
223
void AnnotateEnableRaceDetection(const char* file, int line, int enable);
224
ABSL_INTERNAL_END_EXTERN_C
225
#pragma GCC visibility pop
226
227
#else  // ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED == 0
228
229
#define ABSL_ANNOTATE_RWLOCK_CREATE(lock)                            // empty
230
#define ABSL_ANNOTATE_RWLOCK_CREATE_STATIC(lock)                     // empty
231
#define ABSL_ANNOTATE_RWLOCK_DESTROY(lock)                           // empty
232
#define ABSL_ANNOTATE_RWLOCK_ACQUIRED(lock, is_w)                    // empty
233
#define ABSL_ANNOTATE_RWLOCK_RELEASED(lock, is_w)                    // empty
234
#define ABSL_ANNOTATE_BENIGN_RACE(address, description)              // empty
235
#define ABSL_ANNOTATE_BENIGN_RACE_SIZED(address, size, description)  // empty
236
#define ABSL_ANNOTATE_THREAD_NAME(name)                              // empty
237
#define ABSL_ANNOTATE_ENABLE_RACE_DETECTION(enable)                  // empty
238
#define ABSL_ANNOTATE_BENIGN_RACE_STATIC(static_var, description)    // empty
239
240
#endif  // ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED
241
242
// -------------------------------------------------------------------------
243
// Define memory annotations.
244
245
#ifdef ABSL_HAVE_MEMORY_SANITIZER
246
247
#include <sanitizer/msan_interface.h>
248
249
#define ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(address, size) \
250
  __msan_unpoison(address, size)
251
252
#define ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(address, size) \
253
  __msan_allocated_memory(address, size)
254
255
#else  // !defined(ABSL_HAVE_MEMORY_SANITIZER)
256
257
#define ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(address, size)    // empty
258
#define ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(address, size)  // empty
259
260
#endif  // ABSL_HAVE_MEMORY_SANITIZER
261
262
// -------------------------------------------------------------------------
263
// Define IGNORE_READS_BEGIN/_END attributes.
264
265
#if defined(ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED)
266
267
#define ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE \
268
  __attribute((exclusive_lock_function("*")))
269
#define ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE \
270
  __attribute((unlock_function("*")))
271
272
#else  // !defined(ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED)
273
274
#define ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE  // empty
275
#define ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE    // empty
276
277
#endif  // defined(ABSL_INTERNAL_IGNORE_READS_ATTRIBUTE_ENABLED)
278
279
// -------------------------------------------------------------------------
280
// Define IGNORE_READS_BEGIN/_END annotations.
281
282
#if ABSL_INTERNAL_READS_ANNOTATIONS_ENABLED == 1
283
// Some of the symbols used in this section (e.g. AnnotateIgnoreReadsBegin) are
284
// defined by the compiler-based implementation, not by the Abseil
285
// library. Therefore they do not use ABSL_INTERNAL_C_SYMBOL.
286
287
// Request the analysis tool to ignore all reads in the current thread until
288
// ABSL_ANNOTATE_IGNORE_READS_END is called. Useful to ignore intentional racey
289
// reads, while still checking other reads and all writes.
290
// See also ABSL_ANNOTATE_UNPROTECTED_READ.
291
#define ABSL_ANNOTATE_IGNORE_READS_BEGIN()              \
292
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreReadsBegin) \
293
  (__FILE__, __LINE__)
294
295
// Stop ignoring reads.
296
#define ABSL_ANNOTATE_IGNORE_READS_END()              \
297
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreReadsEnd) \
298
  (__FILE__, __LINE__)
299
300
// Function prototypes of annotations provided by the compiler-based sanitizer
301
// implementation.
302
#pragma GCC visibility push(default)
303
ABSL_INTERNAL_BEGIN_EXTERN_C
304
void AnnotateIgnoreReadsBegin(const char* file, int line)
305
    ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE;
306
void AnnotateIgnoreReadsEnd(const char* file,
307
                            int line) ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE;
308
ABSL_INTERNAL_END_EXTERN_C
309
#pragma GCC visibility pop
310
311
#elif defined(ABSL_INTERNAL_ANNOTALYSIS_ENABLED)
312
313
// When Annotalysis is enabled without Dynamic Annotations, the use of
314
// static-inline functions allows the annotations to be read at compile-time,
315
// while still letting the compiler elide the functions from the final build.
316
//
317
// TODO(delesley) -- The exclusive lock here ignores writes as well, but
318
// allows IGNORE_READS_AND_WRITES to work properly.
319
320
#define ABSL_ANNOTATE_IGNORE_READS_BEGIN()                          \
321
0
  ABSL_INTERNAL_GLOBAL_SCOPED(                                      \
322
0
      ABSL_INTERNAL_C_SYMBOL(AbslInternalAnnotateIgnoreReadsBegin)) \
323
0
  ()
324
325
#define ABSL_ANNOTATE_IGNORE_READS_END()                          \
326
0
  ABSL_INTERNAL_GLOBAL_SCOPED(                                    \
327
0
      ABSL_INTERNAL_C_SYMBOL(AbslInternalAnnotateIgnoreReadsEnd)) \
328
0
  ()
329
330
ABSL_INTERNAL_STATIC_INLINE void ABSL_INTERNAL_C_SYMBOL(
331
    AbslInternalAnnotateIgnoreReadsBegin)()
332
0
    ABSL_INTERNAL_IGNORE_READS_BEGIN_ATTRIBUTE {}
333
334
ABSL_INTERNAL_STATIC_INLINE void ABSL_INTERNAL_C_SYMBOL(
335
    AbslInternalAnnotateIgnoreReadsEnd)()
336
0
    ABSL_INTERNAL_IGNORE_READS_END_ATTRIBUTE {}
337
338
#else
339
340
#define ABSL_ANNOTATE_IGNORE_READS_BEGIN()  // empty
341
#define ABSL_ANNOTATE_IGNORE_READS_END()    // empty
342
343
#endif
344
345
// -------------------------------------------------------------------------
346
// Define IGNORE_WRITES_BEGIN/_END annotations.
347
348
#if ABSL_INTERNAL_WRITES_ANNOTATIONS_ENABLED == 1
349
350
// Similar to ABSL_ANNOTATE_IGNORE_READS_BEGIN, but ignore writes instead.
351
#define ABSL_ANNOTATE_IGNORE_WRITES_BEGIN() \
352
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreWritesBegin)(__FILE__, __LINE__)
353
354
// Stop ignoring writes.
355
#define ABSL_ANNOTATE_IGNORE_WRITES_END() \
356
  ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateIgnoreWritesEnd)(__FILE__, __LINE__)
357
358
// Function prototypes of annotations provided by the compiler-based sanitizer
359
// implementation.
360
#pragma GCC visibility push(default)
361
ABSL_INTERNAL_BEGIN_EXTERN_C
362
void AnnotateIgnoreWritesBegin(const char* file, int line);
363
void AnnotateIgnoreWritesEnd(const char* file, int line);
364
ABSL_INTERNAL_END_EXTERN_C
365
#pragma GCC visibility pop
366
367
#else
368
369
#define ABSL_ANNOTATE_IGNORE_WRITES_BEGIN()  // empty
370
#define ABSL_ANNOTATE_IGNORE_WRITES_END()    // empty
371
372
#endif
373
374
// -------------------------------------------------------------------------
375
// Define the ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_* annotations using the more
376
// primitive annotations defined above.
377
//
378
//     Instead of doing
379
//        ABSL_ANNOTATE_IGNORE_READS_BEGIN();
380
//        ... = x;
381
//        ABSL_ANNOTATE_IGNORE_READS_END();
382
//     one can use
383
//        ... = ABSL_ANNOTATE_UNPROTECTED_READ(x);
384
385
#if defined(ABSL_INTERNAL_READS_WRITES_ANNOTATIONS_ENABLED)
386
387
// Start ignoring all memory accesses (both reads and writes).
388
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() \
389
0
  do {                                                \
390
0
    ABSL_ANNOTATE_IGNORE_READS_BEGIN();               \
391
0
    ABSL_ANNOTATE_IGNORE_WRITES_BEGIN();              \
392
0
  } while (0)
393
394
// Stop ignoring both reads and writes.
395
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_END() \
396
0
  do {                                              \
397
0
    ABSL_ANNOTATE_IGNORE_WRITES_END();              \
398
0
    ABSL_ANNOTATE_IGNORE_READS_END();               \
399
0
  } while (0)
400
401
#ifdef __cplusplus
402
// ABSL_ANNOTATE_UNPROTECTED_READ is the preferred way to annotate racey reads.
403
#define ABSL_ANNOTATE_UNPROTECTED_READ(x) \
404
  absl::base_internal::AnnotateUnprotectedRead(x)
405
406
namespace absl {
407
ABSL_NAMESPACE_BEGIN
408
namespace base_internal {
409
410
template <typename T>
411
inline T AnnotateUnprotectedRead(const volatile T& x) {  // NOLINT
412
  ABSL_ANNOTATE_IGNORE_READS_BEGIN();
413
  T res = x;
414
  ABSL_ANNOTATE_IGNORE_READS_END();
415
  return res;
416
}
417
418
}  // namespace base_internal
419
ABSL_NAMESPACE_END
420
}  // namespace absl
421
#endif
422
423
#else
424
425
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN()  // empty
426
#define ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_END()    // empty
427
#define ABSL_ANNOTATE_UNPROTECTED_READ(x) (x)
428
429
#endif
430
431
// -------------------------------------------------------------------------
432
// Address sanitizer annotations
433
434
#ifdef ABSL_HAVE_ADDRESS_SANITIZER
435
// Describe the current state of a contiguous container such as e.g.
436
// std::vector or std::string. For more details see
437
// sanitizer/common_interface_defs.h, which is provided by the compiler.
438
#include <sanitizer/common_interface_defs.h>
439
440
#define ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(beg, end, old_mid, new_mid) \
441
  __sanitizer_annotate_contiguous_container(beg, end, old_mid, new_mid)
442
#define ABSL_ADDRESS_SANITIZER_REDZONE(name) \
443
  struct {                                   \
444
    alignas(8) char x[8];                    \
445
  } name
446
447
#else
448
449
#define ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(beg, end, old_mid, new_mid)  // empty
450
#define ABSL_ADDRESS_SANITIZER_REDZONE(name) static_assert(true, "")
451
452
#endif  // ABSL_HAVE_ADDRESS_SANITIZER
453
454
// -------------------------------------------------------------------------
455
// HWAddress sanitizer annotations
456
457
#ifdef __cplusplus
458
namespace absl {
459
#ifdef ABSL_HAVE_HWADDRESS_SANITIZER
460
// Under HWASAN changes the tag of the pointer.
461
template <typename T>
462
T* HwasanTagPointer(T* ptr, uintptr_t tag) {
463
  return reinterpret_cast<T*>(__hwasan_tag_pointer(ptr, tag));
464
}
465
#else
466
template <typename T>
467
T* HwasanTagPointer(T* ptr, uintptr_t) {
468
  return ptr;
469
}
470
#endif
471
}  // namespace absl
472
#endif
473
474
// -------------------------------------------------------------------------
475
// Undefine the macros intended only for this file.
476
477
#undef ABSL_INTERNAL_RACE_ANNOTATIONS_ENABLED
478
#undef ABSL_INTERNAL_READS_ANNOTATIONS_ENABLED
479
#undef ABSL_INTERNAL_WRITES_ANNOTATIONS_ENABLED
480
#undef ABSL_INTERNAL_ANNOTALYSIS_ENABLED
481
#undef ABSL_INTERNAL_READS_WRITES_ANNOTATIONS_ENABLED
482
#undef ABSL_INTERNAL_BEGIN_EXTERN_C
483
#undef ABSL_INTERNAL_END_EXTERN_C
484
#undef ABSL_INTERNAL_STATIC_INLINE
485
486
#endif  // ABSL_BASE_DYNAMIC_ANNOTATIONS_H_