diff --git a/src/google/protobuf/any.pb.cc b/src/google/protobuf/any.pb.cc index fde31a819e..930ad77df0 100644 --- a/src/google/protobuf/any.pb.cc +++ b/src/google/protobuf/any.pb.cc @@ -187,7 +187,7 @@ Any::~Any() { SharedDtor(); } inline void Any::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.type_url_.Destroy(); _impl_.value_.Destroy(); _impl_.~Impl_(); @@ -345,8 +345,8 @@ PROTOBUF_NOINLINE bool Any::IsInitialized() const { } void Any::InternalSwap(Any* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_url_, &other->_impl_.type_url_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); diff --git a/src/google/protobuf/any.pb.h b/src/google/protobuf/any.pb.h index 0edecd5d8d..3e5ff8350e 100644 --- a/src/google/protobuf/any.pb.h +++ b/src/google/protobuf/any.pb.h @@ -337,7 +337,7 @@ inline PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.type_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url) } inline std::string* Any::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -352,12 +352,12 @@ inline const std::string& Any::_internal_type_url() const { inline void Any::_internal_set_type_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.type_url_.Set(value, GetArenaForAllocation()); + _impl_.type_url_.Set(value, GetArena()); } inline std::string* Any::_internal_mutable_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.type_url_.Mutable( GetArenaForAllocation()); + return _impl_.type_url_.Mutable( GetArena()); } inline std::string* Any::release_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -366,10 +366,10 @@ inline std::string* Any::release_type_url() { } inline void Any::set_allocated_type_url(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_url_.SetAllocated(value, GetArenaForAllocation()); + _impl_.type_url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.type_url_.IsDefault()) { - _impl_.type_url_.Set("", GetArenaForAllocation()); + _impl_.type_url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url) @@ -390,7 +390,7 @@ inline PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.value_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.value_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Any.value) } inline std::string* Any::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -405,12 +405,12 @@ inline const std::string& Any::_internal_value() const { inline void Any::_internal_set_value(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.value_.Set(value, GetArenaForAllocation()); + _impl_.value_.Set(value, GetArena()); } inline std::string* Any::_internal_mutable_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.value_.Mutable( GetArenaForAllocation()); + return _impl_.value_.Mutable( GetArena()); } inline std::string* Any::release_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -419,10 +419,10 @@ inline std::string* Any::release_value() { } inline void Any::set_allocated_value(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArenaForAllocation()); + _impl_.value_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + _impl_.value_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value) diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index a8fd2f7b30..b5691ec1ba 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -323,7 +323,7 @@ Api::~Api() { SharedDtor(); } inline void Api::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.version_.Destroy(); if (this != internal_default_instance()) delete _impl_.source_context_; @@ -613,8 +613,8 @@ PROTOBUF_NOINLINE bool Api::IsInitialized() const { } void Api::InternalSwap(Api* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.methods_.InternalSwap(&other->_impl_.methods_); @@ -702,7 +702,7 @@ Method::~Method() { SharedDtor(); } inline void Method::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.request_type_url_.Destroy(); _impl_.response_type_url_.Destroy(); @@ -980,8 +980,8 @@ PROTOBUF_NOINLINE bool Method::IsInitialized() const { } void Method::InternalSwap(Method* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.options_.InternalSwap(&other->_impl_.options_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); @@ -1046,7 +1046,7 @@ Mixin::~Mixin() { SharedDtor(); } inline void Mixin::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.root_.Destroy(); _impl_.~Impl_(); @@ -1207,8 +1207,8 @@ PROTOBUF_NOINLINE bool Mixin::IsInitialized() const { } void Mixin::InternalSwap(Mixin* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.root_, &other->_impl_.root_, arena); diff --git a/src/google/protobuf/api.pb.h b/src/google/protobuf/api.pb.h index 15129bb498..c8d9992350 100644 --- a/src/google/protobuf/api.pb.h +++ b/src/google/protobuf/api.pb.h @@ -871,7 +871,7 @@ inline PROTOBUF_ALWAYS_INLINE void Api::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Api.name) } inline std::string* Api::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -886,12 +886,12 @@ inline const std::string& Api::_internal_name() const { inline void Api::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Api::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Api::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -900,10 +900,10 @@ inline std::string* Api::release_name() { } inline void Api::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name) @@ -1018,7 +1018,7 @@ inline PROTOBUF_ALWAYS_INLINE void Api::set_version(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.version_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Api.version) } inline std::string* Api::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1033,12 +1033,12 @@ inline const std::string& Api::_internal_version() const { inline void Api::_internal_set_version(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.version_.Set(value, GetArenaForAllocation()); + _impl_.version_.Set(value, GetArena()); } inline std::string* Api::_internal_mutable_version() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.version_.Mutable( GetArenaForAllocation()); + return _impl_.version_.Mutable( GetArena()); } inline std::string* Api::release_version() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1047,10 +1047,10 @@ inline std::string* Api::release_version() { } inline void Api::set_allocated_version(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArenaForAllocation()); + _impl_.version_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArenaForAllocation()); + _impl_.version_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version) @@ -1073,7 +1073,7 @@ inline const ::google::protobuf::SourceContext& Api::source_context() const ABSL } inline void Api::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_); } _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value); @@ -1093,11 +1093,11 @@ inline ::google::protobuf::SourceContext* Api::release_source_context() { #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + if (GetArena() != nullptr) { released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE @@ -1116,7 +1116,7 @@ inline ::google::protobuf::SourceContext* Api::_internal_mutable_source_context( PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.source_context_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArena()); _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p); } return _impl_.source_context_; @@ -1127,7 +1127,7 @@ inline ::google::protobuf::SourceContext* Api::mutable_source_context() ABSL_ATT return _msg; } inline void Api::set_allocated_source_context(::google::protobuf::SourceContext* value) { - ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_); @@ -1239,7 +1239,7 @@ inline PROTOBUF_ALWAYS_INLINE void Method::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Method.name) } inline std::string* Method::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1254,12 +1254,12 @@ inline const std::string& Method::_internal_name() const { inline void Method::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Method::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Method::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1268,10 +1268,10 @@ inline std::string* Method::release_name() { } inline void Method::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name) @@ -1292,7 +1292,7 @@ inline PROTOBUF_ALWAYS_INLINE void Method::set_request_type_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.request_type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.request_type_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url) } inline std::string* Method::mutable_request_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1307,12 +1307,12 @@ inline const std::string& Method::_internal_request_type_url() const { inline void Method::_internal_set_request_type_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.request_type_url_.Set(value, GetArenaForAllocation()); + _impl_.request_type_url_.Set(value, GetArena()); } inline std::string* Method::_internal_mutable_request_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.request_type_url_.Mutable( GetArenaForAllocation()); + return _impl_.request_type_url_.Mutable( GetArena()); } inline std::string* Method::release_request_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1321,10 +1321,10 @@ inline std::string* Method::release_request_type_url() { } inline void Method::set_allocated_request_type_url(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.request_type_url_.SetAllocated(value, GetArenaForAllocation()); + _impl_.request_type_url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.request_type_url_.IsDefault()) { - _impl_.request_type_url_.Set("", GetArenaForAllocation()); + _impl_.request_type_url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url) @@ -1368,7 +1368,7 @@ inline PROTOBUF_ALWAYS_INLINE void Method::set_response_type_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.response_type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.response_type_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url) } inline std::string* Method::mutable_response_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1383,12 +1383,12 @@ inline const std::string& Method::_internal_response_type_url() const { inline void Method::_internal_set_response_type_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.response_type_url_.Set(value, GetArenaForAllocation()); + _impl_.response_type_url_.Set(value, GetArena()); } inline std::string* Method::_internal_mutable_response_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.response_type_url_.Mutable( GetArenaForAllocation()); + return _impl_.response_type_url_.Mutable( GetArena()); } inline std::string* Method::release_response_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1397,10 +1397,10 @@ inline std::string* Method::release_response_type_url() { } inline void Method::set_allocated_response_type_url(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.response_type_url_.SetAllocated(value, GetArenaForAllocation()); + _impl_.response_type_url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.response_type_url_.IsDefault()) { - _impl_.response_type_url_.Set("", GetArenaForAllocation()); + _impl_.response_type_url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url) @@ -1516,7 +1516,7 @@ inline PROTOBUF_ALWAYS_INLINE void Mixin::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name) } inline std::string* Mixin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1531,12 +1531,12 @@ inline const std::string& Mixin::_internal_name() const { inline void Mixin::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Mixin::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Mixin::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1545,10 +1545,10 @@ inline std::string* Mixin::release_name() { } inline void Mixin::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name) @@ -1569,7 +1569,7 @@ inline PROTOBUF_ALWAYS_INLINE void Mixin::set_root(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.root_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.root_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root) } inline std::string* Mixin::mutable_root() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1584,12 +1584,12 @@ inline const std::string& Mixin::_internal_root() const { inline void Mixin::_internal_set_root(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.root_.Set(value, GetArenaForAllocation()); + _impl_.root_.Set(value, GetArena()); } inline std::string* Mixin::_internal_mutable_root() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.root_.Mutable( GetArenaForAllocation()); + return _impl_.root_.Mutable( GetArena()); } inline std::string* Mixin::release_root() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1598,10 +1598,10 @@ inline std::string* Mixin::release_root() { } inline void Mixin::set_allocated_root(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.root_.SetAllocated(value, GetArenaForAllocation()); + _impl_.root_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.root_.IsDefault()) { - _impl_.root_.Set("", GetArenaForAllocation()); + _impl_.root_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root) diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc index 83c3bfc790..832aae80e1 100644 --- a/src/google/protobuf/duration.pb.cc +++ b/src/google/protobuf/duration.pb.cc @@ -153,7 +153,7 @@ Duration::~Duration() { SharedDtor(); } inline void Duration::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } diff --git a/src/google/protobuf/field_mask.pb.cc b/src/google/protobuf/field_mask.pb.cc index c7ff777660..a897d8a2ab 100644 --- a/src/google/protobuf/field_mask.pb.cc +++ b/src/google/protobuf/field_mask.pb.cc @@ -159,7 +159,7 @@ FieldMask::~FieldMask() { SharedDtor(); } inline void FieldMask::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } diff --git a/src/google/protobuf/source_context.pb.cc b/src/google/protobuf/source_context.pb.cc index 0c99996b79..d22acee088 100644 --- a/src/google/protobuf/source_context.pb.cc +++ b/src/google/protobuf/source_context.pb.cc @@ -161,7 +161,7 @@ SourceContext::~SourceContext() { SharedDtor(); } inline void SourceContext::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.file_name_.Destroy(); _impl_.~Impl_(); } @@ -296,8 +296,8 @@ PROTOBUF_NOINLINE bool SourceContext::IsInitialized() const { } void SourceContext::InternalSwap(SourceContext* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_name_, &other->_impl_.file_name_, arena); } diff --git a/src/google/protobuf/source_context.pb.h b/src/google/protobuf/source_context.pb.h index 2f692ece70..f2a9758e85 100644 --- a/src/google/protobuf/source_context.pb.h +++ b/src/google/protobuf/source_context.pb.h @@ -283,7 +283,7 @@ inline PROTOBUF_ALWAYS_INLINE void SourceContext::set_file_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.file_name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.file_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) } inline std::string* SourceContext::mutable_file_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -298,12 +298,12 @@ inline const std::string& SourceContext::_internal_file_name() const { inline void SourceContext::_internal_set_file_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.file_name_.Set(value, GetArenaForAllocation()); + _impl_.file_name_.Set(value, GetArena()); } inline std::string* SourceContext::_internal_mutable_file_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.file_name_.Mutable( GetArenaForAllocation()); + return _impl_.file_name_.Mutable( GetArena()); } inline std::string* SourceContext::release_file_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -312,10 +312,10 @@ inline std::string* SourceContext::release_file_name() { } inline void SourceContext::set_allocated_file_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.file_name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.file_name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.file_name_.IsDefault()) { - _impl_.file_name_.Set("", GetArenaForAllocation()); + _impl_.file_name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name) diff --git a/src/google/protobuf/struct.pb.cc b/src/google/protobuf/struct.pb.cc index 9813aa0e2b..ac171b5420 100644 --- a/src/google/protobuf/struct.pb.cc +++ b/src/google/protobuf/struct.pb.cc @@ -280,7 +280,7 @@ Struct::~Struct() { SharedDtor(); } inline void Struct::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -460,7 +460,7 @@ const ::google::protobuf::ListValue& Value::_Internal::list_value(const Value* m return *msg->_impl_.kind_.list_value_; } void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) { - ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_kind(); if (struct_value) { ::google::protobuf::Arena* submessage_arena = @@ -474,7 +474,7 @@ void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value) } void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) { - ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_kind(); if (list_value) { ::google::protobuf::Arena* submessage_arena = @@ -549,7 +549,7 @@ Value::~Value() { SharedDtor(); } inline void Value::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); if (has_kind()) { clear_kind(); } @@ -577,13 +577,13 @@ void Value::clear_kind() { break; } case kStructValue: { - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete _impl_.kind_.struct_value_; } break; } case kListValue: { - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete _impl_.kind_.list_value_; } break; @@ -890,7 +890,7 @@ ListValue::~ListValue() { SharedDtor(); } inline void ListValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } diff --git a/src/google/protobuf/struct.pb.h b/src/google/protobuf/struct.pb.h index 544df1f20e..3514bc6d85 100644 --- a/src/google/protobuf/struct.pb.h +++ b/src/google/protobuf/struct.pb.h @@ -952,7 +952,7 @@ inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, set_has_string_value(); _impl_.kind_.string_value_.InitDefault(); } - _impl_.kind_.string_value_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.kind_.string_value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) } inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -975,7 +975,7 @@ inline void Value::_internal_set_string_value(const std::string& value) { set_has_string_value(); _impl_.kind_.string_value_.InitDefault(); } - _impl_.kind_.string_value_.Set(value, GetArenaForAllocation()); + _impl_.kind_.string_value_.Set(value, GetArena()); } inline std::string* Value::_internal_mutable_string_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -985,7 +985,7 @@ inline std::string* Value::_internal_mutable_string_value() { set_has_string_value(); _impl_.kind_.string_value_.InitDefault(); } - return _impl_.kind_.string_value_.Mutable( GetArenaForAllocation()); + return _impl_.kind_.string_value_.Mutable( GetArena()); } inline std::string* Value::release_string_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1003,7 +1003,7 @@ inline void Value::set_allocated_string_value(std::string* value) { } if (value != nullptr) { set_has_string_value(); - _impl_.kind_.string_value_.InitAllocated(value, GetArenaForAllocation()); + _impl_.kind_.string_value_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value) } @@ -1057,7 +1057,7 @@ inline void Value::set_has_struct_value() { inline void Value::clear_struct_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (kind_case() == kStructValue) { - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete _impl_.kind_.struct_value_; } clear_has_kind(); @@ -1068,7 +1068,7 @@ inline ::google::protobuf::Struct* Value::release_struct_value() { if (kind_case() == kStructValue) { clear_has_kind(); auto* temp = _impl_.kind_.struct_value_; - if (GetArenaForAllocation() != nullptr) { + if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } _impl_.kind_.struct_value_ = nullptr; @@ -1110,8 +1110,7 @@ inline ::google::protobuf::Struct* Value::_internal_mutable_struct_value() { if (kind_case() != kStructValue) { clear_kind(); set_has_struct_value(); - _impl_.kind_.struct_value_ = - CreateMaybeMessage<::google::protobuf::Struct>(GetArenaForAllocation()); + _impl_.kind_.struct_value_ = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); } return _impl_.kind_.struct_value_; } @@ -1134,7 +1133,7 @@ inline void Value::set_has_list_value() { inline void Value::clear_list_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (kind_case() == kListValue) { - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete _impl_.kind_.list_value_; } clear_has_kind(); @@ -1145,7 +1144,7 @@ inline ::google::protobuf::ListValue* Value::release_list_value() { if (kind_case() == kListValue) { clear_has_kind(); auto* temp = _impl_.kind_.list_value_; - if (GetArenaForAllocation() != nullptr) { + if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } _impl_.kind_.list_value_ = nullptr; @@ -1187,8 +1186,7 @@ inline ::google::protobuf::ListValue* Value::_internal_mutable_list_value() { if (kind_case() != kListValue) { clear_kind(); set_has_list_value(); - _impl_.kind_.list_value_ = - CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaForAllocation()); + _impl_.kind_.list_value_ = CreateMaybeMessage<::google::protobuf::ListValue>(GetArena()); } return _impl_.kind_.list_value_; } diff --git a/src/google/protobuf/timestamp.pb.cc b/src/google/protobuf/timestamp.pb.cc index e12d0bacf1..668dbf3ed7 100644 --- a/src/google/protobuf/timestamp.pb.cc +++ b/src/google/protobuf/timestamp.pb.cc @@ -153,7 +153,7 @@ Timestamp::~Timestamp() { SharedDtor(); } inline void Timestamp::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } diff --git a/src/google/protobuf/type.pb.cc b/src/google/protobuf/type.pb.cc index b6b8d39eab..3c1e8760d2 100644 --- a/src/google/protobuf/type.pb.cc +++ b/src/google/protobuf/type.pb.cc @@ -503,7 +503,7 @@ Type::~Type() { SharedDtor(); } inline void Type::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.edition_.Destroy(); if (this != internal_default_instance()) delete _impl_.source_context_; @@ -792,8 +792,8 @@ PROTOBUF_NOINLINE bool Type::IsInitialized() const { } void Type::InternalSwap(Type* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.fields_.InternalSwap(&other->_impl_.fields_); @@ -879,7 +879,7 @@ Field::~Field() { SharedDtor(); } inline void Field::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.type_url_.Destroy(); _impl_.json_name_.Destroy(); @@ -1233,8 +1233,8 @@ PROTOBUF_NOINLINE bool Field::IsInitialized() const { } void Field::InternalSwap(Field* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.options_.InternalSwap(&other->_impl_.options_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); @@ -1331,7 +1331,7 @@ Enum::~Enum() { SharedDtor(); } inline void Enum::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.edition_.Destroy(); if (this != internal_default_instance()) delete _impl_.source_context_; @@ -1598,8 +1598,8 @@ PROTOBUF_NOINLINE bool Enum::IsInitialized() const { } void Enum::InternalSwap(Enum* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.enumvalue_.InternalSwap(&other->_impl_.enumvalue_); @@ -1667,7 +1667,7 @@ EnumValue::~EnumValue() { SharedDtor(); } inline void EnumValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.~Impl_(); } @@ -1849,8 +1849,8 @@ PROTOBUF_NOINLINE bool EnumValue::IsInitialized() const { } void EnumValue::InternalSwap(EnumValue* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.options_.InternalSwap(&other->_impl_.options_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); @@ -1927,7 +1927,7 @@ Option::~Option() { SharedDtor(); } inline void Option::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); if (this != internal_default_instance()) delete _impl_.value_; _impl_.~Impl_(); @@ -2095,8 +2095,8 @@ PROTOBUF_NOINLINE bool Option::IsInitialized() const { } void Option::InternalSwap(Option* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); diff --git a/src/google/protobuf/type.pb.h b/src/google/protobuf/type.pb.h index 4f01bb3276..1ce65ef457 100644 --- a/src/google/protobuf/type.pb.h +++ b/src/google/protobuf/type.pb.h @@ -1590,7 +1590,7 @@ inline PROTOBUF_ALWAYS_INLINE void Type::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Type.name) } inline std::string* Type::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1605,12 +1605,12 @@ inline const std::string& Type::_internal_name() const { inline void Type::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Type::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Type::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1619,10 +1619,10 @@ inline std::string* Type::release_name() { } inline void Type::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name) @@ -1844,7 +1844,7 @@ inline const ::google::protobuf::SourceContext& Type::source_context() const ABS } inline void Type::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_); } _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value); @@ -1864,11 +1864,11 @@ inline ::google::protobuf::SourceContext* Type::release_source_context() { #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + if (GetArena() != nullptr) { released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE @@ -1887,7 +1887,7 @@ inline ::google::protobuf::SourceContext* Type::_internal_mutable_source_context PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.source_context_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArena()); _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p); } return _impl_.source_context_; @@ -1898,7 +1898,7 @@ inline ::google::protobuf::SourceContext* Type::mutable_source_context() ABSL_AT return _msg; } inline void Type::set_allocated_source_context(::google::protobuf::SourceContext* value) { - ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_); @@ -1957,7 +1957,7 @@ inline PROTOBUF_ALWAYS_INLINE void Type::set_edition(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.edition_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.edition_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Type.edition) } inline std::string* Type::mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1972,12 +1972,12 @@ inline const std::string& Type::_internal_edition() const { inline void Type::_internal_set_edition(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.edition_.Set(value, GetArenaForAllocation()); + _impl_.edition_.Set(value, GetArena()); } inline std::string* Type::_internal_mutable_edition() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.edition_.Mutable( GetArenaForAllocation()); + return _impl_.edition_.Mutable( GetArena()); } inline std::string* Type::release_edition() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1986,10 +1986,10 @@ inline std::string* Type::release_edition() { } inline void Type::set_allocated_edition(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.edition_.SetAllocated(value, GetArenaForAllocation()); + _impl_.edition_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.edition_.IsDefault()) { - _impl_.edition_.Set("", GetArenaForAllocation()); + _impl_.edition_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.edition) @@ -2083,7 +2083,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Field.name) } inline std::string* Field::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2098,12 +2098,12 @@ inline const std::string& Field::_internal_name() const { inline void Field::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Field::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Field::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2112,10 +2112,10 @@ inline std::string* Field::release_name() { } inline void Field::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name) @@ -2136,7 +2136,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_type_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.type_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url) } inline std::string* Field::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2151,12 +2151,12 @@ inline const std::string& Field::_internal_type_url() const { inline void Field::_internal_set_type_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.type_url_.Set(value, GetArenaForAllocation()); + _impl_.type_url_.Set(value, GetArena()); } inline std::string* Field::_internal_mutable_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.type_url_.Mutable( GetArenaForAllocation()); + return _impl_.type_url_.Mutable( GetArena()); } inline std::string* Field::release_type_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2165,10 +2165,10 @@ inline std::string* Field::release_type_url() { } inline void Field::set_allocated_type_url(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_url_.SetAllocated(value, GetArenaForAllocation()); + _impl_.type_url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.type_url_.IsDefault()) { - _impl_.type_url_.Set("", GetArenaForAllocation()); + _impl_.type_url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url) @@ -2284,7 +2284,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_json_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.json_name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.json_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name) } inline std::string* Field::mutable_json_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2299,12 +2299,12 @@ inline const std::string& Field::_internal_json_name() const { inline void Field::_internal_set_json_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.json_name_.Set(value, GetArenaForAllocation()); + _impl_.json_name_.Set(value, GetArena()); } inline std::string* Field::_internal_mutable_json_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.json_name_.Mutable( GetArenaForAllocation()); + return _impl_.json_name_.Mutable( GetArena()); } inline std::string* Field::release_json_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2313,10 +2313,10 @@ inline std::string* Field::release_json_name() { } inline void Field::set_allocated_json_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.json_name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.json_name_.IsDefault()) { - _impl_.json_name_.Set("", GetArenaForAllocation()); + _impl_.json_name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name) @@ -2337,7 +2337,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_default_value(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.default_value_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.default_value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value) } inline std::string* Field::mutable_default_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2352,12 +2352,12 @@ inline const std::string& Field::_internal_default_value() const { inline void Field::_internal_set_default_value(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.default_value_.Set(value, GetArenaForAllocation()); + _impl_.default_value_.Set(value, GetArena()); } inline std::string* Field::_internal_mutable_default_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.default_value_.Mutable( GetArenaForAllocation()); + return _impl_.default_value_.Mutable( GetArena()); } inline std::string* Field::release_default_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2366,10 +2366,10 @@ inline std::string* Field::release_default_value() { } inline void Field::set_allocated_default_value(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.default_value_.SetAllocated(value, GetArenaForAllocation()); + _impl_.default_value_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.default_value_.IsDefault()) { - _impl_.default_value_.Set("", GetArenaForAllocation()); + _impl_.default_value_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value) @@ -2394,7 +2394,7 @@ inline PROTOBUF_ALWAYS_INLINE void Enum::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Enum.name) } inline std::string* Enum::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2409,12 +2409,12 @@ inline const std::string& Enum::_internal_name() const { inline void Enum::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Enum::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Enum::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2423,10 +2423,10 @@ inline std::string* Enum::release_name() { } inline void Enum::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name) @@ -2547,7 +2547,7 @@ inline const ::google::protobuf::SourceContext& Enum::source_context() const ABS } inline void Enum::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_); } _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value); @@ -2567,11 +2567,11 @@ inline ::google::protobuf::SourceContext* Enum::release_source_context() { #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + if (GetArena() != nullptr) { released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE @@ -2590,7 +2590,7 @@ inline ::google::protobuf::SourceContext* Enum::_internal_mutable_source_context PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.source_context_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArena()); _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p); } return _impl_.source_context_; @@ -2601,7 +2601,7 @@ inline ::google::protobuf::SourceContext* Enum::mutable_source_context() ABSL_AT return _msg; } inline void Enum::set_allocated_source_context(::google::protobuf::SourceContext* value) { - ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_); @@ -2660,7 +2660,7 @@ inline PROTOBUF_ALWAYS_INLINE void Enum::set_edition(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.edition_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.edition_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Enum.edition) } inline std::string* Enum::mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2675,12 +2675,12 @@ inline const std::string& Enum::_internal_edition() const { inline void Enum::_internal_set_edition(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.edition_.Set(value, GetArenaForAllocation()); + _impl_.edition_.Set(value, GetArena()); } inline std::string* Enum::_internal_mutable_edition() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.edition_.Mutable( GetArenaForAllocation()); + return _impl_.edition_.Mutable( GetArena()); } inline std::string* Enum::release_edition() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2689,10 +2689,10 @@ inline std::string* Enum::release_edition() { } inline void Enum::set_allocated_edition(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.edition_.SetAllocated(value, GetArenaForAllocation()); + _impl_.edition_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.edition_.IsDefault()) { - _impl_.edition_.Set("", GetArenaForAllocation()); + _impl_.edition_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.edition) @@ -2717,7 +2717,7 @@ inline PROTOBUF_ALWAYS_INLINE void EnumValue::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name) } inline std::string* EnumValue::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2732,12 +2732,12 @@ inline const std::string& EnumValue::_internal_name() const { inline void EnumValue::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* EnumValue::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* EnumValue::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2746,10 +2746,10 @@ inline std::string* EnumValue::release_name() { } inline void EnumValue::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name) @@ -2846,7 +2846,7 @@ inline PROTOBUF_ALWAYS_INLINE void Option::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.Option.name) } inline std::string* Option::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -2861,12 +2861,12 @@ inline const std::string& Option::_internal_name() const { inline void Option::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Option::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Option::release_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2875,10 +2875,10 @@ inline std::string* Option::release_name() { } inline void Option::set_allocated_name(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name) @@ -2901,7 +2901,7 @@ inline const ::google::protobuf::Any& Option::value() const ABSL_ATTRIBUTE_LIFET } inline void Option::unsafe_arena_set_allocated_value(::google::protobuf::Any* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); } _impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(value); @@ -2921,11 +2921,11 @@ inline ::google::protobuf::Any* Option::release_value() { #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + if (GetArena() != nullptr) { released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE @@ -2944,7 +2944,7 @@ inline ::google::protobuf::Any* Option::_internal_mutable_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArena()); _impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(p); } return _impl_.value_; @@ -2955,7 +2955,7 @@ inline ::google::protobuf::Any* Option::mutable_value() ABSL_ATTRIBUTE_LIFETIME_ return _msg; } inline void Option::set_allocated_value(::google::protobuf::Any* value) { - ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); diff --git a/src/google/protobuf/wrappers.pb.cc b/src/google/protobuf/wrappers.pb.cc index fc11a9a153..18f64b7eda 100644 --- a/src/google/protobuf/wrappers.pb.cc +++ b/src/google/protobuf/wrappers.pb.cc @@ -396,7 +396,7 @@ DoubleValue::~DoubleValue() { SharedDtor(); } inline void DoubleValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -580,7 +580,7 @@ FloatValue::~FloatValue() { SharedDtor(); } inline void FloatValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -764,7 +764,7 @@ Int64Value::~Int64Value() { SharedDtor(); } inline void Int64Value::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -934,7 +934,7 @@ UInt64Value::~UInt64Value() { SharedDtor(); } inline void UInt64Value::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -1104,7 +1104,7 @@ Int32Value::~Int32Value() { SharedDtor(); } inline void Int32Value::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -1274,7 +1274,7 @@ UInt32Value::~UInt32Value() { SharedDtor(); } inline void UInt32Value::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -1444,7 +1444,7 @@ BoolValue::~BoolValue() { SharedDtor(); } inline void BoolValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } @@ -1626,7 +1626,7 @@ StringValue::~StringValue() { SharedDtor(); } inline void StringValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.value_.Destroy(); _impl_.~Impl_(); } @@ -1761,8 +1761,8 @@ PROTOBUF_NOINLINE bool StringValue::IsInitialized() const { } void StringValue::InternalSwap(StringValue* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } @@ -1816,7 +1816,7 @@ BytesValue::~BytesValue() { SharedDtor(); } inline void BytesValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.value_.Destroy(); _impl_.~Impl_(); } @@ -1946,8 +1946,8 @@ PROTOBUF_NOINLINE bool BytesValue::IsInitialized() const { } void BytesValue::InternalSwap(BytesValue* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArenaForAllocation(); - ABSL_DCHECK_EQ(arena, other->GetArenaForAllocation()); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } diff --git a/src/google/protobuf/wrappers.pb.h b/src/google/protobuf/wrappers.pb.h index 4af566741e..02dc29ced8 100644 --- a/src/google/protobuf/wrappers.pb.h +++ b/src/google/protobuf/wrappers.pb.h @@ -1902,7 +1902,7 @@ inline PROTOBUF_ALWAYS_INLINE void StringValue::set_value(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.value_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value) } inline std::string* StringValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1917,12 +1917,12 @@ inline const std::string& StringValue::_internal_value() const { inline void StringValue::_internal_set_value(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.value_.Set(value, GetArenaForAllocation()); + _impl_.value_.Set(value, GetArena()); } inline std::string* StringValue::_internal_mutable_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.value_.Mutable( GetArenaForAllocation()); + return _impl_.value_.Mutable( GetArena()); } inline std::string* StringValue::release_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1931,10 +1931,10 @@ inline std::string* StringValue::release_value() { } inline void StringValue::set_allocated_value(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArenaForAllocation()); + _impl_.value_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + _impl_.value_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.StringValue.value) @@ -1959,7 +1959,7 @@ inline PROTOBUF_ALWAYS_INLINE void BytesValue::set_value(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.value_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.value_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value) } inline std::string* BytesValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1974,12 +1974,12 @@ inline const std::string& BytesValue::_internal_value() const { inline void BytesValue::_internal_set_value(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - _impl_.value_.Set(value, GetArenaForAllocation()); + _impl_.value_.Set(value, GetArena()); } inline std::string* BytesValue::_internal_mutable_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; - return _impl_.value_.Mutable( GetArenaForAllocation()); + return _impl_.value_.Mutable( GetArena()); } inline std::string* BytesValue::release_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1988,10 +1988,10 @@ inline std::string* BytesValue::release_value() { } inline void BytesValue::set_allocated_value(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArenaForAllocation()); + _impl_.value_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + _impl_.value_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.protobuf.BytesValue.value)