Protobuf Team Bot
5a679dfb29
Refactor ARM-optimized varint parsing.
...
This change improves deserialization performance by in two ways:
1) VarintParseSlowArm32 and VarintParseSlowArm64 return a pair for the updated buffer pointer and parsing result instead of storing the result and returning just the pointer. This allows the parsed result to be returned to higher level code in x1 rather than via the stack.
2) Remove prohibition on inlining VarintParseSlowArm32 and VarintParseSlowArm64. This prohibition was originally included to avoid bloating non-TDP code. Now that TDP is enabled the impact on code size is small.
PiperOrigin-RevId: 523142512
2 years ago
Jie Luo
7458e32f0d
internal change
...
PiperOrigin-RevId: 523138685
2 years ago
Adam Cozzette
8a84914cfd
Update port.h to include <typeinfo> unconditionally
...
This should fix #12412 by ensuring that we don't refer to `PROTOBUF_RTTI`
before it is defined.
PiperOrigin-RevId: 522657207
2 years ago
Adam Cozzette
defff5c2b1
Internal change
...
PiperOrigin-RevId: 522634054
2 years ago
Protobuf Team Bot
435a698b24
Auto-generate files after cl/522473964
2 years ago
Adam Cozzette
163f849d31
Automated rollback of commit defe92a03c
.
...
PiperOrigin-RevId: 522473964
2 years ago
Joshua Haberman
5ddb1fc609
Remove ODR violation from WKT codegen ( #12406 ) ( #12419 )
...
* Remove ODR violation from WKT codegen (#12406 )
Closes #12406
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12406 from mkruskal-google:wkt 1c6748e6aa
PiperOrigin-RevId: 522418175
* Removed legacy target.
---------
Co-authored-by: Mike Kruskal <mkruskal@google.com>
2 years ago
Mike Kruskal
f51923041d
Remove ODR violation from WKT codegen ( #12406 )
...
Closes #12406
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12406 from mkruskal-google:wkt 1c6748e6aa
PiperOrigin-RevId: 522418175
2 years ago
Adam Cozzette
6038e9b9fe
Internal change
...
PiperOrigin-RevId: 522386061
2 years ago
chandlerc
9413e0e9a1
Adjust API and use lambdas to reduce stack space usage.
...
PiperOrigin-RevId: 522258513
2 years ago
Adam Cozzette
3c9829875d
Automated rollback of commit e664fff44e
.
...
PiperOrigin-RevId: 522189510
2 years ago
Adam Cozzette
e664fff44e
Internal change
...
PiperOrigin-RevId: 522181404
2 years ago
Marcel Hlopko
f7a2f4acea
Add initial end-to-end test directory structure.
...
This turns out to be quite of a yak shave to be able to perfectly test both kernels without having to pass extra Blaze flags.
PiperOrigin-RevId: 521850709
2 years ago
Protobuf Team Bot
db7c7349ea
Refactor MapField arena destruction to avoid destroying the Map unnecessarily and make sure to destroy the mutex in MapFieldBase.
...
PiperOrigin-RevId: 521838091
2 years ago
Marcel Hlopko
083830d849
Update copyright year
...
PiperOrigin-RevId: 521800787
2 years ago
Mike Kruskal
8894d03bae
Switch to docker image for protoc build in java linkage test
...
This will prevent non-hermetic outages and better unify our test infrastructure.
PiperOrigin-RevId: 521779648
2 years ago
Protobuf Team Bot
084d9702d6
Internal change
...
PiperOrigin-RevId: 521532900
2 years ago
Marcel Hlopko
ef299f7af4
Disable some tests under msan
...
PiperOrigin-RevId: 521505590
2 years ago
Mike Kruskal
02cdbd7202
Internal changes
...
PiperOrigin-RevId: 521028876
2 years ago
Protobuf Team Bot
585a98cb66
Automated rollback of commit 580678eacd
.
...
PiperOrigin-RevId: 521009823
2 years ago
Protobuf Team Bot
580678eacd
Refactor ARM-optimized varint parsing.
...
This change improves deserialization performance by in two ways:
1) VarintParseSlowArm32 and VarintParseSlowArm64 return a pair for the updated buffer pointer and parsing result instead of storing the result and returning just the pointer. This allows the parsed result to be returned to higher level code in x1 rather than via the stack.
2) Remove prohibition on inlining VarintParseSlowArm32 and VarintParseSlowArm64. This prohibition was originally included to avoid bloating non-TDP code. Now that TDP is enabled the impact on code size is small.
PiperOrigin-RevId: 520985945
2 years ago
Deanna Garcia
3f8625b306
Edit READMEs to include new cmake instructions and remove references to language specific source distributions.
...
PiperOrigin-RevId: 520980524
2 years ago
Deanna Garcia
4b3844e596
Delete unused bazel distribution rules.
...
We intended to use these for our release page, but we instead removed language-specific source files and use github commands to generate the full zip/tar file we release.
PiperOrigin-RevId: 520979818
2 years ago
Protobuf Team Bot
defe92a03c
Clang's unsigned integer overflow sanitizer is flagging BucketNumber as having an overflow. This seems to be intentional, and we should disable the sanitizer for this function.
...
PiperOrigin-RevId: 520968947
2 years ago
Mike Kruskal
2a798b07ff
Internal change.
...
PiperOrigin-RevId: 520962747
2 years ago
Jie Luo
47861d2892
Add wire format cord support for singular bytes
...
PiperOrigin-RevId: 520690714
2 years ago
Martijn Vels
0032f200e9
Fix IsEagerSerializeSafe() and kParseError behavior
...
PiperOrigin-RevId: 520664827
2 years ago
Augie Fackler
648060bbcb
Internal change.
...
PiperOrigin-RevId: 520627020
2 years ago
Jakob Buchgraber
515175db66
Build & test Rust compiler on GHA
...
PiperOrigin-RevId: 520578368
2 years ago
Jakob Buchgraber
52d3dc688c
Refactor Rust UPB codegen to prepare for field accessors
...
The idea is that after this refactoring we implement the codegen for field accessors by adding another template variable, like
p.Emit(
...
$ImplMessageFunctions$;
$ImplFieldAccessors$;
...
)
PiperOrigin-RevId: 520571021
2 years ago
Marcel Hlopko
ebbb2d656f
Visibility restrict targets generated by rust_proto_library macro
...
PiperOrigin-RevId: 520561115
2 years ago
Mike Kruskal
83507c7f4e
Implement a retain_options flag in protoc.
...
This will allow users to force the retention of RETENTION_SOURCE options, which get stripped out by default.
PiperOrigin-RevId: 520555632
2 years ago
Protobuf Team Bot
4ee65df9f2
Auto-generate files after cl/520526112
2 years ago
Mike Kruskal
676018e352
Expand retention stripping API, and improve test coverage
...
PiperOrigin-RevId: 520526112
2 years ago
Sandy Zhang
8c8b2be3a8
Breaking change: Lock down visibility for FileDescriptor.getSyntax().
...
Syntax will become meaningless once we migrate to editions. In the meantime, we've implemented APIs to expose the differences between proto2 and proto3 in terms of the features we plan to release in edition 2023.
PiperOrigin-RevId: 520433607
2 years ago
Protobuf Team Bot
5dc171f71e
Extension declaration: Enforce that if the extension range has a declaration then all extensions in that range must be declared. This should prevent non-declared extensions from being added.
...
PiperOrigin-RevId: 520415909
2 years ago
Mike Kruskal
db126ca653
Fix exhaustive switch issue in Rust generator
...
PiperOrigin-RevId: 520398035
2 years ago
Mike Kruskal
2eda0cc44c
Add optimizations to extension declaration validation.
...
PiperOrigin-RevId: 520386119
2 years ago
Mike Kruskal
f9fa1f4873
Automated rollback of commit b72eb3f233
.
...
PiperOrigin-RevId: 520363442
2 years ago
Marcel Hlopko
d9a8622fac
Enable bzl visibility for Protobuf Rust rules
...
PiperOrigin-RevId: 520319698
2 years ago
Jakob Buchgraber
dbf97258bd
Enable support for rust_upb_proto_library and rust_cc_proto_library within the same build
...
PiperOrigin-RevId: 520314976
2 years ago
Mike Kruskal
b72eb3f233
Add optimizations to extension declaration validation.
...
PiperOrigin-RevId: 520159132
2 years ago
Mike Kruskal
5bf843b3d5
Internal changes
...
PiperOrigin-RevId: 520120295
2 years ago
deannagarcia
f1c7820c9b
Suppress -Wunused-parameter warning for GCC and clang. ( #12355 )
...
* Suppress -Wunused-parameter warning for GCC and clang.
Closes https://github.com/protocolbuffers/protobuf/issues/12313
PiperOrigin-RevId: 520066451
* Remove unintended cherrypicked line
2 years ago
Mike Kruskal
f128ced675
Internal Code Change
...
PiperOrigin-RevId: 520076528
2 years ago
Deanna Garcia
8aff59e1c4
Suppress -Wunused-parameter warning for GCC and clang.
...
Closes https://github.com/protocolbuffers/protobuf/issues/12313
PiperOrigin-RevId: 520066451
2 years ago
Protobuf Team Bot
6ae84761bf
Auto-generate files after cl/520049946
2 years ago
Mike Kruskal
3f4af6661a
Internal Code Change
...
PiperOrigin-RevId: 520049946
2 years ago
Jakob Buchgraber
4745f526d4
Small style guide, naming and formatting fixes
...
PiperOrigin-RevId: 519993508
2 years ago
Jakob Buchgraber
8c92452c99
Split UPB and C++ kernel codegen into their own functions
...
PiperOrigin-RevId: 519977094
2 years ago