protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.81k stars 15.51k forks source link

Add test to assert that `Arena::CreateArray` always allocates sufficiently aligned blocks #19333

Open copybara-service[bot] opened 1 day ago

copybara-service[bot] commented 1 day ago

Add test to assert that Arena::CreateArray always allocates sufficiently aligned blocks

In particular, "sufficiently aligned" for any underlying Element of RepeatedPtrField<Element> (which can be a message, a string, or a StringPieceField).