Skip to content

Commit

Permalink
make arena patch reserve stable
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Jun 23, 2024
1 parent dc093ae commit 1b00ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4869,7 +4869,7 @@ index 000000000..c128b2ba0
+ return rep->data;
+#endif // !_GLIBCXX_USE_CXX11_ABI
+#else // !__GLIBCXX__
+ capacity = (capacity + 15) & static_cast<size_type>(-16);
+ capacity = (capacity + 16) & static_cast<size_type>(-16);
+ auto* buffer = reinterpret_cast<pointer>(_arena->AllocateAligned(capacity));
+ __builtin_memcpy(buffer, data(), size());
+ auto& rep = representation();
Expand Down
2 changes: 1 addition & 1 deletion registry/modules/protobuf/25.3.arenastring/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"integrity": "sha256-0ZZD0mW5eDgzUrMUPwTAZB7qdadSNcERzAGhNQFzGA4=",
"patch_strip": 1,
"patches": {
"arenastring.patch": "sha256-MY5od+YHr6z8FD6XJm9jTr70dVy3179MSOsdugFgk7g="
"arenastring.patch": "sha256-MZD7LgW2iXtp02u3l5zAGQ8yEwEyc57j2Ln6AlFWDTk="
}
}

0 comments on commit 1b00ef8

Please sign in to comment.