aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* InitializeDefaultRepeatedFields() allocates memory but does not release it.Gravatar Antoni Buszta2014-10-08
|
* Merge pull request #35 from dsrosario/fix_warningGravatar Feng Xiao2014-10-06
|\ | | | | Fix "warning C4018: '<' : signed/unsigned mismatch"
* | Down-integrate from internal branch.Gravatar Feng Xiao2014-10-03
| |
* | Replace links to code.google.com/protobuf with ↵Gravatar Feng Xiao2014-10-01
| | | | | | | | developers.google.com/protocol-buffers
| * Fix "warning C4018: '<' : signed/unsigned mismatch" at wire_format_lite_inl.hGravatar Dinis Rosário2014-09-23
| |
* | Update copyright notice and remove first lineGravatar William Orr2014-09-22
| |
* | Add support for solaris atomicopsGravatar William Orr2014-09-19
|/ | | | | | This patch adds support for atomic operations on Solaris, on any platform. It makes use of the atomic functions made available in Solaris' atomic.h header.
* Merge pull request #30 from edmonds/branches/fix_generic_atomicops_memory_modelsGravatar xfxyjwf2014-09-19
|\ | | | | generic atomicops: promote Acquire_Store() and Release_Load() to use SEQ_CST fence
| * generic atomicops: promote Acquire_Store() and Release_Load() to use SEQ_CST ↵Gravatar Robert Edmonds2014-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fence __atomic_store_n() cannot take a memory model argument of __ATOMIC_ACQUIRE, and __atomic_load_n() cannot take a memory model argument of __ATOMIC_RELEASE, per the GCC documentation: https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/_005f_005fatomic-Builtins.html On Clang this generates a -Watomic-memory-ordering warning. Promote the fences in Acquire_Store() and Release_Load() to the stronger __ATOMIC_SEQ_CST memory model, which ought to be safe. Note that there are no actual uses of Acquire_Store() or Release_Load() in protobuf, though. This follows the TSAN atomicops implementation, which also uses SEQ_CST fences for these functions. (Fixes #25.)
* | platform_macros.h: #undef GOOGLE_PROTOBUF_PLATFORM_ERROR once it's no longer ↵Gravatar Robert Edmonds2014-09-18
|/ | | | needed
* Fix atomicops build failure on non-ClangGravatar Robert Edmonds2014-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We cannot use Clang's __has_extension macro unless we really are compiling on Clang, which means we cannot use this expression: #if (defined(__clang__) && __has_extension(c_atomic))) // ... #endif On GCC, this generates the following errors: In file included from ./google/protobuf/stubs/atomicops.h:59:0, from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36: ./google/protobuf/stubs/platform_macros.h:67:41: error: missing binary operator before token "(" (defined(__clang__) && __has_extension(c_atomic))) ^ In file included from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:0: ./google/protobuf/stubs/atomicops.h:196:40: error: missing binary operator before token "(" (defined(__clang__) && __has_extension(c_atomic)) ^ Instead, we have to protect the __has_extension expression by only executing it when __clang__ is defined: #if defined(__clang__) # if __has_extension(c_atomic) // ... # endif #endif
* Expose generic atomicops on ClangGravatar Robert S. Edmonds2014-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | The generic atomicops implementation is only exposed if GCC >= 4.7 is available, but Clang, where the underlying __atomic built-ins are also available, typically only claims to be GCC 4.2. This causes build failures when compiling protobuf or the output of protoc's C++ code generator on an architecture that needs the generic atomicops implementation with Clang. Clang has a "c_atomic" extension which can be tested for which almost does what we want: C11 atomic operations Use __has_feature(c_atomic) or __has_extension(c_atomic) to determine if support for atomic types using _Atomic is enabled. Clang also provides a set of builtins which can be used to implement the <stdatomic.h> operations on _Atomic types. I'm not sure if this guarantees that the GNU atomic builtins (the ones with the __atomic prefix) are also available, but in practice this should guarantee that Clang is new enough. With this change in place, Clang generates several diagnostics when compiling the generic atomicops implementation. These appear to be bugs in the generic atomicops implementation and are not Clang-specific.
* Remove GOOGLE_PROTOBUF_ARCH_PPCGravatar Robert S. Edmonds2014-09-13
| | | | | | | | | | | | | | | | | The macro GOOGLE_PROTOBUF_ARCH_PPC is not used anywhere in the protobuf source; there is no Power-specific atomics implementation, etc. Funnily enough, the macro __ppc__ is not actually defined on 32-bit Power on GCC/Linux, according to the following webpage: http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros#POWER and verified on a 32-bit Debian sid 'powerpc' chroot: (sid_powerpc-dchroot)edmonds@partch:~$ gcc -dM -E - < /dev/null | grep -c __ppc__ 0 (sid_powerpc-dchroot)edmonds@partch:~$ gcc -dM -E - < /dev/null | grep -c __LP64__ 0
* remove a const qualifier in a method's return typeGravatar huahang2014-09-04
|
* fix a compile warningGravatar huahang2014-09-03
| | | | | This change fixes the following compiler warning: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
* Added const qualifier to iterator to enable compiling with VS2008Gravatar David Hirschfeld2014-08-27
|
* merge tags/2.6.0 into trunkGravatar jieluo@google.com2014-08-25
|
* patch Issue 130740043 to trunk for other atomicops patches: [MIPS64] Add ↵Gravatar jieluo@google.com2014-08-20
| | | | support for MIPS64 in protobuf
* make dist complains the file name is too long and refuse to put it to tar. ↵Gravatar jieluo@google.com2014-08-14
| | | | Change the file to a shorter name
* add shared_pr.hGravatar jieluo@google.com2014-08-12
|
* down integrate python opensource to svnGravatar jieluo@google.com2014-08-12
|
* Change java descriptor back to privateGravatar jieluo@google.com2014-08-07
|
* 1, Add comments for include<algorithm> we added for min/max on VS2013. 2, ↵Gravatar jieluo@google.com2014-08-07
| | | | Add #if/#endif to wrap #undef
* change java compiler to only produce one java fileGravatar jieluo@google.com2014-08-07
|
* use #undef instead of change the name of MemoryBarrierGravatar jieluo@google.com2014-08-06
|
* Cygwin doesn't work well if we try to capture stderr and stdout at the same ↵Gravatar jieluo@google.com2014-08-06
| | | | time. Comment one test tempraly for Cygwin. Need to figure out why and add the test back for Cygwin.
* make changes to pass CygwinGravatar jieluo@google.com2014-08-05
|
* add #ifdef _MSC_VERGravatar jieluo@google.com2014-08-01
|
* change some files to pass MSVC 2013Gravatar jieluo@google.com2014-07-31
|
* Change MemoryBarrier() to MemoryBarrierInternal(). Resolve name conflict in ↵Gravatar jieluo@google.com2014-07-30
| | | | mingw gcc 4.8.1
* Increase the allocated_size_ should be after allocation. Otherwise there ↵Gravatar jieluo@google.com2014-07-24
| | | | might have segmentation fault if allocation throws an exception.
* use decimal constants to avoid casting error with visual c /W4Gravatar jieluo@google.com2014-07-23
| | | | "unary minus operator applied to unsigned type, result still unsigned"
* Add iostream in message.cc. Remove unused in coded_stream_unittest.ccGravatar jieluo@google.com2014-07-18
|
* delete unused variableGravatar jieluo@google.com2014-07-18
|
* down integrate to svnGravatar jieluo@google.com2014-07-18
|
* Down-integrate pending changes from internal repository after previous release.Gravatar liujisi@google.com2014-05-28
|
* Fix a bug in Arm64 atomicops. (https://codereview.appspot.com/88800045/)Gravatar xiaofeng@google.com2014-05-05
|
* Fix and improve arm64 atomic operations in protobuf stubs (patch from ↵Gravatar xiaofeng@google.com2014-04-09
| | | | | | | rmcilroy@). https://codereview.appspot.com/86030044/
* Add Arm64 AtomicOps (patch from rmcilroy@)Gravatar xiaofeng@google.com2014-03-26
|
* Replace TSan API declarations in atomicops_internals_tsan.h with a header ↵Gravatar xiaofeng@google.com2014-03-24
| | | | inclusion (patch from glider@)
* Replace kEmptyString wth OnceInit initialized string*Gravatar xiaofeng@google.com2014-02-13
|
* Add aarch64 architecture to platform_macros.h (patch by Sylvain Defresne)Gravatar liujisi@google.com2014-02-13
| | | | | | | | Both gcc and clang defines the __aarch64__ macro when building for the 64-bit AArch64 execution state of ARMv8 processors, so use this to detect the architecture.
* Add missing #include of <algorithm> for min/max on VS2013Gravatar xiaofeng@google.com2013-09-17
|
* Fix a typo.Gravatar xiaofeng@google.com2013-07-30
|
* Add support for ThreadSanitizer atomicops API to protobuf - patch from glider@Gravatar xiaofeng@google.com2013-07-25
|
* Fix issue 474Gravatar xiaofeng@google.com2013-03-05
|
* Update version number in descriptor.pb.h and plugin.pb.hGravatar xiaofeng@google.com2013-03-01
|
* Update version number in trunkGravatar xiaofeng@google.com2013-02-28
|
* Exclude a failing test in MingW build.Gravatar xiaofeng@google.com2013-02-26
|
* Down-integrate from internal branchGravatar xiaofeng@google.com2013-02-25
|