Jean byroot Boussier
87cbdddbf0
Ruby implement memsize functions for native types ( #10291 )
...
Fix: https://github.com/protocolbuffers/protobuf/issues/10280
This allows Ruby to report a more correct estimation of the memory used by these objects.
It's useful when running memory profilers against applications.
cc @zhangskz @haberman
Closes #10291
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/10291 from casperisfine:ruby-sizes 9150795328
PiperOrigin-RevId: 606718632
10 months ago
Protobuf Team Bot
0c715b5e9e
Add edition_message_unittest.
...
PiperOrigin-RevId: 606717431
10 months ago
Protobuf Team Bot
d49dacca20
Add helper function to generate stub TcParse tables with only a single handler.
...
Useful for test non-codegen types that have their own parsing logic.
Also forward the `ptr` through the post_loop_handler to allow it to fail.
PiperOrigin-RevId: 606714285
10 months ago
Mike Kruskal
4d3931d626
Avoid using ctype's isalpha.
...
In general, ctype is local-dependent, and in MSVC isalpha asserts on non-ascii characters
PiperOrigin-RevId: 606696757
10 months ago
Protobuf Team Bot
c879718581
Internal change
...
PiperOrigin-RevId: 606672326
10 months ago
Joshua Haberman
f824f6d0d7
Moved ObjectCache into an internal module.
...
This type has always been internal-only, but moving it to a module named `Internal` will make this clearer.
PiperOrigin-RevId: 606649281
10 months ago
aiuto
3ab1276bbb
Update Bazel references to rules_pkg to the supported file locations. ( #15780 )
...
WIP: I want to see this pass CI first.
Fixes : #15779
3 scripted transforms:
```
-load("@rules_pkg//:mappings.bzl", ...)
+load("@rules_pkg//pkg:mappings.bzl", ...)
```
```
-load("@rules_pkg//:pkg.bzl", "pkg_tar")
+load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
```
```
-load("@rules_pkg//:pkg.bzl", "pkg_zip")
+load("@rules_pkg//pkg:zip.bzl", "pkg_zip")
```
Closes #15780
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15780 from aiuto:rules_pkg a630276341
PiperOrigin-RevId: 606641398
10 months ago
Protobuf Team Bot
3dc3dab85c
Add zero-length deserialize unit test.
...
PiperOrigin-RevId: 606637997
10 months ago
Protobuf Team Bot
725278a254
Internal change
...
PiperOrigin-RevId: 606614720
10 months ago
Sandy Zhang
2f9b5e1204
Add 26.x to staleness checks
...
PiperOrigin-RevId: 606443838
10 months ago
Protobuf Team Bot
ed400ea517
Add a TcParseTable pointer in `ClassData` and change the default
...
`_InternalParse` implementation to use it.
For LITE messages, populate the entry in `ClassData` and remove the override for
`_InternalParse`.
PiperOrigin-RevId: 606364791
10 months ago
Protobuf Team Bot
1eaba72b7c
Auto-generate files after cl/606340283
10 months ago
Protobuf Team Bot
52f9ea88d8
No longer allow minidescriptors to accept message fields tagged as proto3 scalar (implicit presence)
...
PiperOrigin-RevId: 606340283
10 months ago
Protobuf Team Bot
9473beb76c
Up the upb scratch space from 64000 bytes to 65536 bytes since 64 KiB is the maximum supported message size in upb.
...
PiperOrigin-RevId: 606321230
10 months ago
Joshua Haberman
776d072fa1
Removed obsolete TODO.
...
PiperOrigin-RevId: 606317655
10 months ago
Sandy Zhang
b9273fa7c7
Fix CMake regex escaping.
...
CMake documentation (https://cmake.org/cmake/help/latest/command/string.html#regex-replace ) indicates subexpressions are actually referenced via \1 not $1 in cmake.
PiperOrigin-RevId: 606307156
10 months ago
Protobuf Team Bot
78a3f8a8cb
Correct error message to indicate user should provide experimental-codegen=enabled to --rust_opt
...
PiperOrigin-RevId: 606306382
10 months ago
Protobuf Team Bot
b184cdd59d
Auto-generate files after cl/606282881
10 months ago
Eric Salo
a5d9b0522c
upb: delete upb_Message_IsExactlyEqual()
...
PiperOrigin-RevId: 606282881
10 months ago
Protobuf Team Bot
56409303b1
Auto-generate files after cl/606262924
10 months ago
Eric Salo
b5957f108a
upb: implement _upb_Arena_Contains()
...
PiperOrigin-RevId: 606262924
10 months ago
Protobuf Team Bot
2dd2dfaca3
Rename use_cpp_toolchain in protos/bazel/cc_proto_library.bzl, for consistency.
...
This now matches the upb_use_cpp_toolchain function name in the equivalent function in third_party/upb/bazel/upb_proto_library_internal/cc_library_func.bzl.
PiperOrigin-RevId: 606257428
10 months ago
Marcel Hlopko
73769a030d
Fix msan issue in Map<bool,*>
...
PiperOrigin-RevId: 606164792
10 months ago
Protobuf Team Bot
e3dcdfddcf
Auto-generate files after cl/605718863
10 months ago
Eric Salo
c69ed472cd
upb: implement minitable-based field iterators
...
PiperOrigin-RevId: 605718863
10 months ago
Protobuf Team Bot
833451eaf3
Protoc Internal changes.
...
PiperOrigin-RevId: 605658497
10 months ago
Protobuf Team Bot
5e55d11bcd
Auto-generate files after cl/605625455
10 months ago
Protobuf Team Bot
d7885ebc37
Add direct-to-table support for MessageSet types.
...
PiperOrigin-RevId: 605625455
10 months ago
Marcel Hlopko
5842cc9c3d
Implement support for messages as map values
...
PiperOrigin-RevId: 605581725
10 months ago
Protobuf Team Bot
7da29c6a13
Minor cleanup: IWYU, etc.
...
PiperOrigin-RevId: 605475996
10 months ago
Sandy Zhang
e62243482e
Escape _from_dir in install.cmake for regex special characters (e.g. c++) before REGEX REPLACE.
...
PiperOrigin-RevId: 605469982
10 months ago
Protobuf Team Bot
f82c2ef0db
Minor cleanup: whitelist --> allowlist
...
PiperOrigin-RevId: 605439980
10 months ago
Protobuf Team Bot
b3878b5ae3
Auto-generate files after cl/605413999
10 months ago
Eric Salo
b0d3a787cc
upb: Simplify inline functions in mini_table/ and mem/ and wire/ and message/
...
PiperOrigin-RevId: 605413999
10 months ago
Protobuf Team Bot
5427138178
Remove rust proto libraries from the editions/BUILD file.
...
PiperOrigin-RevId: 605397582
10 months ago
Protobuf Team Bot
9443f08fad
Auto-generate files after cl/605368710
10 months ago
Protobuf Team Bot
2fc7022879
Adds string view fields whose accessors are absl::string_view based.
...
PiperOrigin-RevId: 605368710
10 months ago
Protobuf Team Bot
55e50ba406
C#: Ignore invalid enum string values in JSON, when invalid fields are being ignored.
...
PiperOrigin-RevId: 605310357
10 months ago
Protobuf Team Bot
959e5df20f
Minor cleanup: IWYU, clang-tidy.
...
PiperOrigin-RevId: 605131702
10 months ago
Adam Cozzette
220548f30c
Add missing alias targets for C++ util libraries
...
Until recently, these targets were dependencies of `//:protobuf` and could thus
be accessed through that target. But now that we are adhering to the layering
check, we need to provide proper access in a way that respects that check. This
change uses top-level alias targets following the existing pattern.
PiperOrigin-RevId: 605123979
10 months ago
Protobuf Team Bot
4767a309d3
Auto-generate files after cl/605097398
10 months ago
Joshua Haberman
49fdc9d1cd
Rewrote the comment about the `java_string_check_utf8` option to fix a few errors and omissions.
...
- The comment stated that the option does not affect lite, but this appears to be false: in my testing the option affects both lite and full protos.
- The comment failed to mention that the option has no effect when set explicitly to false. It can only be used to opt proto2 into extra checking, it cannot opt proto3 out of the checks.
PiperOrigin-RevId: 605097398
10 months ago
Protobuf Team Bot
afd1c0d653
Add a test that when using an Arena from a single thread, objects are destroyed in reverse order from construction.
...
PiperOrigin-RevId: 605085198
10 months ago
Protobuf Team Bot
31920e9548
Auto-generate files after cl/605067418
10 months ago
Ilya Tokar
948ca2e0f3
Add software prefetch to ByteSizeLong
...
Mkaes ByteSizeLong faster:
BM_ByteSizeLong 15.7µs ± 4% 14.9µs ± 6% -5.17% (p=0.000 n=20+20)
PiperOrigin-RevId: 605067418
10 months ago
Protobuf Team Bot
85a80488ff
Fix unnecessary generation of PostLoopHandler when tracking is on, but
...
OnDeserialize is disabled.
PiperOrigin-RevId: 605060804
10 months ago
Matt Kulukundis
38c0f6d01c
Switch rank structs to be consistent with written guidance in go/ranked-overloads
...
PiperOrigin-RevId: 605015758
10 months ago
Joshua Haberman
ffd7e1702a
Updated freshness on several docs, and made some minor updates to the content.
...
PiperOrigin-RevId: 604993985
10 months ago
Protobuf Team Bot
f55a9b4936
Use the post-loop hook to invoke the tracker when parsing via TcParser.
...
PiperOrigin-RevId: 604780875
10 months ago
Protobuf Team Bot
a2cdf59778
Adding Edition 2023 z_generated_example.
...
PiperOrigin-RevId: 604754130
10 months ago