Skip to content

Sync to thomasvl/protobuf head#2

Merged
leovitch merged 2605 commits intoleovitch:masterfrom
thomasvl:master
May 21, 2018
Merged

Sync to thomasvl/protobuf head#2
leovitch merged 2605 commits intoleovitch:masterfrom
thomasvl:master

Conversation

@leovitch
Copy link
Owner

Catch up to head

krvukic and others added 30 commits December 29, 2017 11:33
Add tests to cover all the common special casing in the runtime code to
ensure things come out correctly.
Add caliper supported to java benchmark
whitelisting aix platform as it has sched_yield
Bump protoc-artifact version for a patch rebuild
Previously, within the same load period of protobuf module, well known
types are not initialized correctly for the second request. The reason
is that well known type are only initialized if a method local static
variable is not set. However, that variable is not reset after request
ends. Therefore, when the second request comes, the method local static
variable is still set (by previous request) and well types are not
initialized in this case.
Better test coverage for datetime validation.
Fix ValidateDateTime: check day instead month
Fix java benchmark to use parser, fix cpp benchmark new arena to use …
By default, unknown fields are preserved when parsing. To discard
them, use a parser configured to do so:

var parser = MyMessage.Parser.WithDiscardUnknownFields(true);
bshaffer and others added 28 commits April 9, 2018 14:08
The current 15.6.x versions of Visual Studio 2017 contain a bug that
prevent them from compiling the following construct under certain
conditions:

std::unique_ptr<std::unique_ptr<Foo> []> foos;

This will fail to compile if Foo is an abstract class. To work-around
the problem the whole construct was change into:

std::vector<std::unique_ptr<Foo>> foos;

This not only fixes the compiler error but is also more readable than
previous version.
…hmark_build

fix java benchmark, fix dashboard build
Cleanup + documentation for Java Lite runtime.
…lbuffers#4440)

* Edited MessageFieldGenerator to clone to backing field instead of property

* Generated C# proto code
The tests can run as what Apple calls a Logic Test (under xctest), which means
it doesn't have to load an full UI App under the simulator, which speeds things
up a fair amount.
Set ext.no_native = true for non mac platform
With this fix, Unity using IL2CPP should work with one of two
approaches:

- Call `FileDescriptor.ForceReflectionInitialization<T>` for every
  enum present in generated code (including oneof case enums)
- Ensure that IL2CPP uses the same code for int and any int-based
  enums

The former approach is likely to be simpler, unless IL2CPP changes
its default behavior. We *could* potentially generate the code
automatically, but that makes me slightly uncomfortable in terms of
generating code that's only relevant in one specific scenario. It
would be reasonably easy to write a tool (separate from protoc) to
generate the code required for any specific set of assemblies, so
that Unity users can include it in their application. We can always
decide to change to generate it automatically later.
CMake: Update CXX Standard management
…protocolbuffers#4556)

* Fix memory leak of exceptions raised by RaiseException()

Currently exceptions raised by RaiseException() is never deallocated because:

* ARC is disabled for this library: https://github.com/google/protobuf/blob/master/BUILD#L913
* It is constructed with `+alloc` but is never `-release`d.

This change fixes the issue by using `-[NSException exceptionWithName:...]` instead, which returns an autoreleased instance, so it is deallocated properly.

* Fix format.
@leovitch leovitch self-assigned this May 21, 2018
@leovitch leovitch merged commit 42d4853 into leovitch:master May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.