Commit Graph

8230 Commits

Author SHA1 Message Date
Joshua Haberman
80fe990b6a
Merge pull request #6073 from tenderlove/compaction-friendly
Register mark objects so Protobuf is compaction friendly
2021-03-11 10:55:15 -08:00
Adam Cozzette
6aa539bf01 Update protobuf version 2021-03-10 14:53:26 -08:00
Adam Cozzette
971a5935ed Updated CHANGES.txt and PHP changelog for 3.15.6 2021-03-10 14:53:26 -08:00
Aaron Patterson
addd0615bf
Register mark objects so Protobuf is compaction friendly
This commit removes an unused reference and registers globals with the
GC so that they will never die.  Ruby is getting a compacting GC, and it
means that these references can move.  Registering them with
`rb_gc_register_mark_object` will ensure the constants don't move and
will not be collected.
2021-03-10 13:54:04 -08:00
chenzhihui
43aca57613 Allocate extension 1108 to Kratos API Errors 2021-03-10 08:20:18 -08:00
salamani
a4694f9b66 correcting arch name for s390x 2021-03-10 08:09:44 -08:00
Yannic Bonenberger
a3aecacc24 [bazel] Remove deprecated way to depend on googletest 2021-03-10 10:22:42 +01:00
Yannic Bonenberger
aa5cb98712 Fix conformance_cpp 2021-03-10 10:05:31 +01:00
Deanna Garcia
be2f000c96 Adding most recent work 2021-03-10 00:24:57 +00:00
Cody Casterline
c6bce8c10f Remove link to unmaintained TypeScript library
y3llowcake/protoc-gen-ts is no longer maintained:  
https://github.com/y3llowcake/protoc-gen-ts/issues/2#issuecomment-758215154

FWIW, neither is this one w/ a similar name: thesayyn/protoc-gen-ts:  
https://github.com/thesayyn/protoc-gen-ts/issues/31#issuecomment-781681955
2021-03-09 14:25:44 -08:00
Per Lundberg
c7a6160a87 Fixes to make the --fatal_warnings flag work with current master 2021-03-09 14:21:18 -08:00
Nikhil Benesch
dedbd63306 Add --fatal_warnings flag to treat warnings as errors
Add a --fatal_warnings flag that requests that protoc exit with a
failing status code if any warnings are generated during compilation.

Partially address #3980.
2021-03-09 14:21:18 -08:00
Yannic Bonenberger
baef01b756 Fix build error 2021-03-09 22:18:43 +01:00
Yannic Bonenberger
de53e1afff Revert moving status.cc 2021-03-09 22:09:28 +01:00
Yannic Bonenberger
59ea5c8f19 [C++] Refactor util::Status
This change refactors util::Status to have a similar shape as the
recently open-sourced absl::Status. This will allow Protobuf to
eventually use absl::Status and reduce the codesize.

Note that there is more work required before absl::Status can be used.
2021-03-09 22:09:28 +01:00
Galen Warren
6f4573afbd docs: register Coach Client Connect extension number (1107) 2021-03-09 09:14:23 -08:00
Jiro Nishiguchi
8d1d530c51 Fix typo in docs/implementing_proto3_presence.md 2021-03-08 11:13:03 -08:00
Joshua Haberman
b2991b8419
Merge pull request #8386 from haberman/ruby-string-compare
[Ruby] Fixed bug in string comparison logic.
2021-03-05 12:36:22 -08:00
Joshua Haberman
bb322c2b39 [Ruby] Fixed bug in string comparison logic. 2021-03-05 08:23:42 -08:00
Adam Cozzette
35bdcabdd6
Merge pull request #8383 from protocolbuffers/3.15.x
Merge 3.15.x into master
2021-03-05 07:28:48 -08:00
Adam Cozzette
673971834c
Merge branch 'master' into 3.15.x 2021-03-04 17:53:03 -08:00
Adam Cozzette
4fff47a418 Update protobuf version 2021-03-04 13:35:04 -08:00
Adam Cozzette
5702d51ec0 Updated CHANGES.txt and PHP release notes for 3.15.5 2021-03-04 13:35:04 -08:00
Alexander Shadchin
87dd07b436
Switch on "new" buffer API (#8339)
"Old" buffer API will removed in Python 3.10. This is also fix #7930.
2021-03-04 11:00:41 -08:00
Florian Simon
b9a036b444 Do not disable RTTI by default in the CMake build 2021-03-04 10:18:33 -08:00
Joshua Haberman
72b02b56ea
Merge pull request #8379 from haberman/quadratic-mem-fix
Fixed quadratic memory use in array append for PHP and Ruby.
2021-03-04 10:17:03 -08:00
Elliotte Rusty Harold
b6facc69ea docs: update version 2021-03-04 09:30:23 -08:00
Joshua Haberman
9b5e357df5 Fixed quadratic memory use in array append for PHP and Ruby. 2021-03-04 09:12:29 -08:00
Igor Sirotin
5d0c30934b Added abilty to pass options to protoc executable from cmake 2021-03-04 13:37:24 +03:00
Adam Cozzette
c4a77dad71
Merge pull request #8370 from acozzette/3.15.x-202103031418
Merge 3.15.x into master
2021-03-03 15:58:01 -08:00
Yannic
82f5ecd955 Revert "[bazel] Flip --incompatible_use_com_google_googletest"
This reverts commit 85e5204517.
2021-03-03 15:30:00 -08:00
Adam Cozzette
541b1735a8
Merge branch 'master' into 3.15.x-202103031418 2021-03-03 15:01:11 -08:00
Joshua Haberman
27f4e8b5d9
Merge pull request #8350 from haberman/sync-stage
Integrate from Piper for C++, Java, and Python
2021-03-03 14:59:34 -08:00
Adam Cozzette
13fa25013a Merge branch '3.15.x' into 3.15.x-202103031418 2021-03-03 14:29:11 -08:00
Joshua Haberman
33905ec87b Fixed the Java Lite build. 2021-03-03 12:36:13 -08:00
Adam Cozzette
fd8aabf32d Update protobuf version 2021-03-03 11:37:48 -08:00
Adam Cozzette
e5c067f81b Updated CHANGES.txt and PHP changelog for 3.15.4 release 2021-03-03 11:37:48 -08:00
Antony Dovgal
aa41d9005b read_property() handler is not supposed to return NULL
NULL is never expected as a result of read_property() handler,
it should return &EG(uninitialized_zval) if there is no such property in
the object
2021-03-03 11:32:58 -08:00
Joshua Haberman
4baed791f5
Merge pull request #8362 from tony2001/read_property_crash_fixed
read_property() handler is not supposed to return NULL
2021-03-03 10:14:31 -08:00
Joshua Haberman
cf7d81f88c
Merge pull request #8363 from haberman/ruby-nil-fix
Fixed SEGV when users pass nil messages. This also disallows `nil` in RepeatedField or Map.
2021-03-02 17:26:46 -08:00
Joshua Haberman
7d63b996e1 Removed compatibility test that tries to append "nil" to repeated field. 2021-03-02 15:20:06 -08:00
Joshua Haberman
069f989b48
Merge pull request #8364 from haberman/ruby-memory-footprint
[Ruby] Fixed quadratic memory usage when appending to arrays.
2021-03-02 15:17:13 -08:00
Florian Simon
1add7a7bd6 Create a CMake option to control whether or not RTTI is enabled
This is useful for Conan recipes that build Protobuf, in which
whatever we want to enable has to be enabled in the initial command line.
Without this, the people maintaining the recipe have to patch the CMake
setup of Protobuf before building the binaries.

Closes #5541
2021-03-02 13:47:05 -08:00
Joshua Haberman
88243e45fc [Ruby] Fixed quadratic memory usage when appending to arrays.
The code mistakenly called realloc() instead of resize() on every
array append, causing quadratic memory usage.
2021-03-02 13:37:47 -08:00
Joshua Haberman
dfa54577d6 [Ruby] Fixed SEGV when users pass nil messages. 2021-03-02 12:44:16 -08:00
Antony Dovgal
2e7771d7a0 read_property() handler is not supposed to return NULL
NULL is never expected as a result of read_property() handler,
it should return &EG(uninitialized_zval) if there is no such property in
the object
2021-03-02 22:49:24 +03:00
Yannic
85e5204517 [bazel] Flip --incompatible_use_com_google_googletest 2021-03-02 11:17:52 -08:00
Po-Chuan Hsieh
3172ab8ff9 Fix endian.h location on FreeBSD 2021-03-02 11:10:46 -08:00
Florian Simon
a4e7b97bd6 Create a CMake option to control whether or not RTTI is enabled
This is useful for Conan recipes that build Protobuf, in which
whatever we want to enable has to be enabled in the initial command line.
Without this, the people maintaining the recipe have to patch the CMake
setup of Protobuf before building the binaries.

Closes #5541
2021-03-02 11:09:28 -08:00
Anton Danielsson
630028a4c6 Fix cmake install on iOS
Fixes:
INSTALL TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
2021-03-01 17:32:31 -08:00