Commit Graph

9181 Commits

Author SHA1 Message Date
Darly
d255f09036 Adding missing python files to the Makefile.am 2022-03-23 12:26:51 -04:00
Darly Paredes
8e3746559d Merge tag 'refs/tags/sync-piper' into sync-stage 2022-03-22 18:02:12 +00:00
Darly Paredes
a4c9effec1 Sync from Piper @436517178
PROTOBUF_SYNC_PIPER
2022-03-22 18:02:10 +00:00
Elliotte Rusty Harold
8c170146ee
download_data.sh no longer exists (#9661)
@haberman download_data.sh doesn't seem to exist any more and I can't find it in the git log
2022-03-22 16:33:10 +00:00
James Newton-King
e5ae3bb763
[C#] Update GetExtension to support getting typed value (#9655) 2022-03-22 08:56:39 +00:00
Adam Cozzette
405913c712
Merge pull request #9652 from acozzette/sync-stage
Integrate from Piper for C++, Java, and Python
2022-03-21 16:37:07 -07:00
yeqown
a69354f31b
apply a registration for protoc-gen-fieldmask extension (#9646)
* Update options.md

* add one blank line
2022-03-19 08:46:51 -07:00
Adam Cozzette
db80d59966 Add new Python file to Makefile.am 2022-03-18 22:44:31 +00:00
Adam Cozzette
d2256ed112 Fix warning about unused variable in unit test 2022-03-18 22:34:06 +00:00
Adam Cozzette
5ead3ba171 Update CHANGES.txt with recent internal changes 2022-03-18 21:33:17 +00:00
Adam Cozzette
2f09990544 Merge tag 'refs/tags/sync-piper' into sync-stage
# Conflicts:
#	java/core/src/main/java/com/google/protobuf/Utf8.java
2022-03-18 21:26:44 +00:00
Adam Cozzette
a336ba0346 Sync from Piper @435734090
PROTOBUF_SYNC_PIPER
2022-03-18 21:25:56 +00:00
amirhadadi
46c3651c31
Implement Utf8.decodeUtf8 by using String constructor (#9415)
* Implement Utf8.decodeUtf8 by using String constructor and a search for the replacement string "\uFFFD". This greatly simplifies the implementation, speeds it up for ascii and saves in memory allocations for non ascii strings.

* Remove irrelevant comment about indexOf.

* Code style changes following review.

* Remove TODO + remove final per google style.

* Delete decodeUtf8 from UnsafeProcessor as it inherits the intended implementation from its parent.

* Move decodeUtf8 implementation from Utf8::Processor to Utf8 since it has only a single implementation which is independent of whether the processor is safe or unsafe.

* Change only the logic of UnsafeProcessor to use String constructor
This is done since some Android versions will see a performance regression if this change is applied.
So we are making this change only for UnsafeProcessor which is not used on Android.

* Remove duplicated Javadoc

Co-authored-by: ahadadi <ahadadi@outbrain.com>
2022-03-18 10:28:17 -07:00
Joshua Haberman
7f1acff2a4
Fixed Ruby 3.1 tests by marking intersect? as unimplemented. (#9645)
* Fixed Ruby 3.1 tests by marking intersect? as unimplemented.

* Updated compatibility tests.
2022-03-17 12:51:03 -07:00
Marco Concetto Rudilosso
abdfd093af
Allow pre-compiled binaries for ruby 3.1.0 (#9566)
* Allow pre-compiled binaries for ruby 3.1.1

* add comment

* fix build and use ruby 3.1.0

* add ruby31 to build CI for tests and release

* trying to fix ci

* install ruby 3.1.0 in ruby_build_environment.sh

* use head for rvm to install 3.1.0

* just install master version of rvm in prepare_build_macos_rc

* force install of master rvm in ruby_build_environment.sh

* Use coroutine=universal when compiling ruby31

* use ucontext

* fix filename

* fix coroutine name

* use git head for rake-compiler-dock

* use newest rake-compiler-dock version
2022-03-17 09:38:36 -07:00
Adam Cozzette
85eb57d267
Fix typo in src/README.md (#9644) 2022-03-17 09:12:51 -07:00
deannagarcia
854d86bb09
Merge pull request #9640 from protocolbuffers/toolchainCleanup
Toolchain cleanups
2022-03-17 08:28:24 -07:00
Jason Lunn
40cb0e43c0
Merge pull request #9638 from JasonLunn/master
Add alternative instructions for Homebrew users.
2022-03-16 22:41:08 -04:00
Deanna Garcia
faae704730 Toolchain cleanups 2022-03-16 21:07:51 +00:00
Jason Lunn
557f6fbfc8 Add alternative instructions for Homebrew users. 2022-03-16 13:48:15 -04:00
deannagarcia
178ebc179e
Merge pull request #9628 from protocolbuffers/windowsSysroot
Removing toolchain_dir variable
2022-03-15 12:12:58 -07:00
Joshua Haberman
7ecf43f0ce
Updated Ruby to the latest upb. (#9589)
* Updated Ruby to the latest upb.

* Updated to newer upb.
2022-03-14 13:11:29 -07:00
Deanna Garcia
202ec9ed9b Removing toolchain_dir variable 2022-03-14 17:33:08 +00:00
Arfrever Frehtes Taifersar Arahesis
5dab09408c
Enable GeneratedDescriptorTest.EnormousDescriptor test for GCC/Clang CMake builds (#9617) 2022-03-10 16:40:07 -08:00
Arfrever Frehtes Taifersar Arahesis
bd935e101d
cmake: Call get_filename_component() with DIRECTORY mode instead of PATH mode (#9614)
PATH mode is legacy alias for DIRECTORY mode (needed only for CMake <= 2.8.11):
https://cmake.org/cmake/help/latest/command/get_filename_component.html
2022-03-10 12:05:27 -08:00
Go Kudo
1722b16e03
[PHP] fix PHP build system (#9571)
* [PHP] fix PHP extension build system

* fix year

* fix EXTRA_DIST

* remove include header

* add comment

* Revert "add comment"

This reverts commit e462966aa927b01d888527c17aaf29ea9ac6b6b4.

* add comment

* fix dangling commit

Co-authored-by: Go Kudo <g-kudo@colopl.co.jp>
2022-03-10 11:44:01 -08:00
Adam Cozzette
1ddad63dd9 Sync from Piper @acozzette/proto_github_202203101748
PROTOBUF_SYNC_PIPER
2022-03-10 18:44:16 +00:00
Adam Cozzette
b20209f321 Sync from Piper @acozzette/proto_github_202203101748
PROTOBUF_SYNC_PIPER
2022-03-10 18:36:42 +00:00
deannagarcia
f4d22f80a2
Merge pull request #9610 from protocolbuffers/manylinuxToolchains
Changing toolchain build file
2022-03-10 10:26:19 -08:00
Elliotte Rusty Harold
3adfa9afc5
clean up language (#9577)
* clean up language

@logophile

* Update lite.md
2022-03-10 13:19:07 -05:00
lzj
7d5af9d539
avoid allocating memory if all extension are cleared (#9345)
* Update extension_set.cc

avoid allocating memory if all extension are cleared

* Avoid allocating too much memory

* Accurately count flat memory size

* Update extension_set.cc

use the 4x growth.

* add unittest for ExtensionSet
2022-03-10 08:41:08 -08:00
Martin Schröder
75554b80a1
Replace gradle plugin with a live project (#9611)
Replace the link for the gradle plugin with a project that's alive.
2022-03-10 07:55:49 -08:00
Deanna Garcia
02be7a09f1 Changing toolchain build file 2022-03-09 23:34:31 +00:00
Arfrever Frehtes Taifersar Arahesis
426866285b cmake: Replace protobuf_source_dir variable with protobuf_SOURCE_DIR variable (#9596)
protobuf_source_dir variable is no longer needed and has the same value
as protobuf_SOURCE_DIR variable, which is instance of CMake-standard
<PROJECT-NAME>_SOURCE_DIR variable:
https://cmake.org/cmake/help/latest/variable/PROJECT-NAME_SOURCE_DIR.html
2022-03-09 14:55:55 -08:00
Arfrever Frehtes Taifersar Arahesis
def70d725a Add cmake/CMakeLists.txt for compatibility (#9596) 2022-03-09 14:55:55 -08:00
Arfrever Frehtes Taifersar Arahesis
14cab5b909 Rename main cmake/CMakeLists.txt to CMakeLists.txt
Fixes: #9596
2022-03-09 14:55:55 -08:00
Adam Cozzette
5ad0697c86
Merge pull request #9604 from protocolbuffers/3.20.x
Merge 3.20.x into master
2022-03-08 14:38:23 -08:00
Go Kudo
d1d13ed6fa
[PHP] Remove unnecessary zval initialization (#9600)
* [PHP] remove unneccesary zval

* fix memory leak, warning, Makefile
2022-03-08 14:35:48 -08:00
Adam Cozzette
357e71679e
Merge pull request #9588 from protocolbuffers/master
Merge master into 3.20.x
2022-03-08 12:24:24 -08:00
Luka Dornhecker
24a0659f95
[Ruby] allow encode json options to be an object that responds to to_hash (#9513)
* allow encode json options to be an object that responds to to_hash

fixes #9500

* try to convert options arg to hash if it is not a hash
2022-03-08 10:38:52 -08:00
zhangskz
276add0b5c
Add ruby_upb_alloc using xrealloc/xfree so Ruby GC is aware of allocated memory for Arenas. (#9586)
* Add ruby-specific upb_alloc using xrealloc/xfree for use in Arena_alloc so Ruby GC is aware of allocated memory.
* Add RB_GC_GUARD to DescriptorPool_add_serialized_file  to ensure ruby does not aggressively garbage collect arena_rb due to lack of references.
2022-03-08 12:05:34 -05:00
Arfrever
1cec803182
CMake fixes (#9595)
* Support older versions of CMake.

VERSION_GREATER_EQUAL is supported by CMake >=3.7:
https://cmake.org/cmake/help/latest/command/if.html#version-greater-equal

target_link_options() is supported by CMake >=3.13:
https://cmake.org/cmake/help/latest/command/target_link_options.html

* Use PROTOBUF_USE_DLLS and LIBPROTOC_EXPORTS for libprotoc.so shared library

Similar change for libprotobuf.so and libprotobuf-lite.so was made
in commit 5a0887fc65.

* Make value of PROTOC_EXPORT dependent on LIBPROTOC_EXPORTS instead of LIBPROTOBUF_EXPORTS

This was probably intention, and LIBPROTOC_EXPORTS is also used above
in _MSC_VER branch.
2022-03-07 17:03:50 -08:00
Junrou Nishida
92cdf87f1a
[C#] fix parse failure for extensions with large field numbers (#9591) 2022-03-07 10:46:21 +00:00
Brett McBride
f2002f6022
adding php81 support to release notes (#9590) 2022-03-05 16:18:07 -08:00
Joshua Haberman
349d74d92e
Updated PHP upb, and utf8_range for Ruby/PHP (#9585)
* Updated PHP to the new version of upb.

This is a large change, as the upb API surface has been
renamed to follow Google style more closely.

* Fixed utf8_range.

* Updated Ruby for new utf8_range.

* Picked up new upb for PHP, with spelling fixes.

* Fixed the 32-bit build.
2022-03-05 11:55:57 -08:00
Adam Cozzette
aff13048c5
Update CHANGES.txt for 3.20.0 release (#9581) 2022-03-04 13:13:55 -08:00
Adam Cozzette
23e7cfd54a
Lower minimum CMake version to 3.5 (#9580)
We tried increasing it to 3.10, but that turned out to be too high since
gRPC still supports 3.5.1.
2022-03-04 13:13:19 -08:00
Adam Cozzette
388df0041a Update tests.sh to locally install all Java packages, not just util
The JRuby test runs appear to be fetching the util package from Maven
Central because it is not being installed locally. This causes the tests
to fail when we upgrade to a new version that has not yet been published
to Maven Central. This commit fixes the problem by locally installing
all the protobuf packages, not just util.
2022-03-04 09:52:19 -08:00
Adam Cozzette
88a18db91e Update protobuf version 2022-03-04 09:52:19 -08:00
Adam Cozzette
0a246e23f8
Merge pull request #9576 from acozzette/sync-stage
Integrate from Piper for C++, Java, and Python
2022-03-03 18:59:20 -08:00