dont-annotate-arena.patch 456 B

12345678910
  1. --- a/src/google/protobuf/repeated_field.h
  2. +++ b/src/google/protobuf/repeated_field.h
  3. @@ -389,6 +389,7 @@
  4. // filled from previous memory), and called with (current_size, total_size)
  5. // right before (previously annotated) memory is released.
  6. void AnnotateSize(int old_size, int new_size) const {
  7. + return;
  8. if (old_size != new_size) {
  9. ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(
  10. unsafe_elements(), unsafe_elements() + total_size_,