Commit Graph

7057 Commits

Author SHA1 Message Date
Rafi Kamal
6220db4ec4
Update protobuf version (#6927) 2019-11-21 19:10:04 -08:00
Rafi Kamal
51475bc4ea
Marked update_compatibility_version.py as executable (#6916) 2019-11-20 16:39:07 -08:00
Rafi Kamal
01425cb262
Revert "Make shared libraries be able to link to MSVC static runtime libraries, so that VC runtime is not required." (#6914)
This reverts commit 129a7c875f. We are
seeing the following error when building Python release artifacts in Windows:
" error LNK2038: mismatch detected for 'RuntimeLibrary': value
'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in
descriptor.obj".
2019-11-20 15:34:09 -08:00
Rafi Kamal
52b632cf27
Update CHANGES.txt with 3.11.0-RC1 release notes (#6909) 2019-11-20 10:45:24 -08:00
Paul Yang
edda0c92f5 Persistent Descriptor Pool (#6899)
* Make reserve names map persistent

* Add DescriptorInternal to map

* Use get_msgdef_desc in encode_decode.c

* Add persistent map for ce=>def and enum=>def

* Replace get_ce_obj

* Remove get_proto_obj

* Remove obsolete fields from Descriptor and EnumDescriptor

* Add cache for descriptor php values

* Add cache for descriptors

* Fix bug

* Avoid add generated file again if it has been added

* Fix the bug upb depends on null-ended str for look up.

* Initialize generated pool impl

* Turn down old generated pool

* Add init entry flag protobuf.keep_descriptor_pool_after_request

By default, it's off. Add protobuf.keep_descriptor_pool_after_request=1 to php.ini to enable it

* Fix zts build
2019-11-19 15:32:13 -08:00
Rafi Kamal
cd7b27be38 Update protobuf version (#6898) 2019-11-19 15:32:13 -08:00
Rafi Kamal
4e93585e8b
Down integrate to GitHub (#6893) 2019-11-15 10:40:11 -08:00
Rafi Kamal
bb0c543934
Update Xcode version needed to run Kokoro tests and replace deprecated rubygem options (#6890)
* Update Xcode version needed to run Kokoro tests

* Replace deprecated --no-ri --no-rdoc rubygem options with --no-document
2019-11-14 13:44:33 -08:00
Paul Yang
601f6963eb
Lazily Create Singular Wrapper Message (#6833)
* Register additional handlers from wrappers

* Return zval instead of parse frame

* Use parse frame

* Update upb

* Lazily create wrapper messages

* Fix a segment fault

Need check type of field before getting submsg def

* Avoid expanding during serialization and direct access

* Fix a bug that getXXXUnwrapped returns null for string

* Implement writeWrapperUnwrapped

* Add more tests

* Fix oneof wrapper parsing

* Fix get oneof field

* Avoid expansion for oneof wrappers

* Fix bug

* Fix a bug that in php7 variable is defined out of scope

* Fix broken tests
 * Update upb to fix Timestamp conformance tests
 * Fix segmentation fault for oneof wrapper fields

* Fix encoding/decoding top level wrapper values

* Add type checking for write wrapper value in php7

* Fix zts build

* Fix the bug that readWrapperValue uses parent message's layout to access wrapper value

* Fix wrapper in map
2019-11-14 12:17:04 -08:00
Jie Luo
f06800524f
Revert "C# upgrade dotnet SDK (#6877)" (#6888)
This reverts commit 0c8acb6c8d.
2019-11-14 09:49:59 -08:00
Jan Tattermusch
0c8acb6c8d C# upgrade dotnet SDK (#6877)
* upgrade dotnet SDK

* upgrade dotnet SDK version in global.json
2019-11-14 09:39:31 -08:00
Benjamin Peterson
9d61eada0f Import MutableSequence from collections.abc on Python 3. (#6272)
Fixes https://github.com/protocolbuffers/protobuf/issues/5335.
2019-11-12 14:40:47 -08:00
Rafi Kamal
9b0fa3e7fb Remove java/lite/proguard.pgcfg from EXTRA_DIST since it's not part of
protoc.
2019-11-12 13:38:58 -08:00
Mohamed Heikal
df71972358 Simplify template exporting macros 2019-11-12 13:38:58 -08:00
Rafi Kamal
394f5c8c0f Whitelist newly added conformance test failures for Ruby, C#, and PHP 2019-11-12 13:38:58 -08:00
Rafi Kamal
8edd68ea75 Add proguard.pgcfg to EXTRA_DIST in Makefile.am 2019-11-12 13:38:58 -08:00
Rafi Kamal
58d4420e2d Down Integrate Internal Changes 2019-11-12 13:38:58 -08:00
Jan Tattermusch
6fc04c3f0e
Merge pull request #6832 from ObsidianMinor/csharp/test-overhaul
Move generated test code for Google.Protobuf.Test to a separate lib
2019-11-11 19:14:30 +01:00
Sydney Acksman
cbafc68d9e Add project to Makefile.am 2019-11-11 10:29:40 -06:00
Thomas Van Lenten
668eb3b4e6 Fix decoding of overencoded booleans.
if the value was >32bit with the low bits all being zero, it was decoded as
false instead of as true.

Fixes #6863
2019-11-08 17:56:45 -05:00
Sydney Acksman
b84929f7fb Rename .CodeGen to .TestProtos in Makefile and script 2019-11-08 08:41:26 -06:00
Sydney Acksman
51fa766baa Fix typos
Bring .NET Framework target down to 4.5
Rename project in comment
2019-11-08 07:23:51 -06:00
Sydney Acksman
a70c796988 Add project to solution 2019-11-08 07:23:51 -06:00
Sydney Acksman
8da87c6202 Rename Google.Protobuf.Test.CodeGen to Google.Protobuf.Test.TestProtos 2019-11-08 07:23:51 -06:00
Sydney Acksman
7e4be173ad Move generated files in Makefile.am 2019-11-08 07:23:50 -06:00
Sydney Acksman
2bb49712aa Add comment to summarize project
Set lang version to C# 3.0
Add .NET Standard 2.0 target
Fix partial diagnostic string since it requires C# 6
2019-11-08 07:23:50 -06:00
Sydney Acksman
63780dfb28 Rebase on master 2019-11-08 07:23:50 -06:00
Sydney Acksman
a85c4a3299 Move generated test code to a seperate lib 2019-11-08 07:23:50 -06:00
Jan Tattermusch
db586e4660
Merge pull request #6856 from ObsidianMinor/csharp/propexpr
Change _Extensions property to normal body rather than expression
2019-11-08 10:06:54 +01:00
Joshua Haberman
0eb9b279e2
Merge pull request #6797 from haberman/ruby-lazy-wrappers
Ruby lazy wrappers optimization
2019-11-07 15:53:46 -08:00
Sydney Acksman
c04a02774d Change _Extensions property to normal body rather than expression 2019-11-07 15:30:12 -06:00
Jan Tattermusch
0150f7f532
Merge pull request #6843 from chrisdunelm/csharp_wrapper_primitive_opts
C#: Optimize parsing of some primitive and wrapper types
2019-11-05 18:04:53 +01:00
Jan Tattermusch
d052a05559
Merge pull request #6828 from ObsidianMinor/csharp/get-string-overload
Use 3 parameter Encoding.GetString for default string values
2019-11-05 17:18:49 +01:00
Chris Bacon
d22eaded5c Remove unneeded exception methods 2019-11-05 11:39:31 +00:00
Chris Bacon
2ac8946ee3 Allow extra fields in wrapper messages, more tests. 2019-11-04 21:35:38 +00:00
Chris Bacon
e305e56cad C#: Optimize parsing of some primitive and wrapper types 2019-11-04 20:26:27 +00:00
Sydney Acksman
e119a432a8 Use 3 parameter Encoding.FromBytes for default string values 2019-11-04 12:31:28 -06:00
Jan Tattermusch
4668a3323f
Merge pull request #6836 from jtattermusch/csharp_wrappers_microbenchmark
C#: Add microbenchmark for parsing wrapper types
2019-11-04 18:55:08 +01:00
Jan Tattermusch
3f810569b3 update Makefile.am 2019-11-04 18:21:22 +01:00
Jan Tattermusch
b8b1b6793f add regenerate C# protos 2019-11-04 18:21:22 +01:00
Jan Tattermusch
85a87ed3cb add benchmark for wrapper type parsing 2019-11-04 18:21:22 +01:00
Jan Tattermusch
c81bad1b04 add wrapper_benchmark_messages.proto 2019-11-04 18:21:22 +01:00
Jan Tattermusch
1ebae17b94
Merge pull request #6842 from jskeet/fix-makefile
Fix Makefile.am by adding generated files
2019-11-04 18:14:22 +01:00
Jon Skeet
aa22aa32f3 Fix Makefile.am by adding generated files 2019-11-04 16:35:38 +00:00
Thomas Van Lenten
f6eeb435bf General Xcode 11 support for picking iOS simulators to test against. 2019-11-04 11:20:35 -05:00
Jan Tattermusch
9417a310d3
Merge pull request #6824 from jskeet/fix-extensions
Fix reflection access when using old generated code
2019-11-04 14:12:06 +01:00
Jan Tattermusch
61d75cb8ec
Merge pull request #6826 from jskeet/fix-custom-options
Avoid NullReferenceException when accessing CustomOptions
2019-11-04 14:06:00 +01:00
Joshua Haberman
781d6963c6 Fixed the case of multi-line strings in JSON. 2019-10-31 12:23:25 -07:00
veawor
129a7c875f Make shared libraries be able to link to MSVC static runtime libraries, so that VC runtime is not required. 2019-10-30 16:31:05 -07:00
Jon Skeet
7282f29ced Avoid NullReferenceException when accessing CustomOptions
Even though the property is deprecated, it still shouldn't throw.
2019-10-30 11:59:09 +00:00