Commit Graph

364 Commits

Author SHA1 Message Date
pliard@google.com
6103d4ed13 Don't call AddDesc() at static init time in LITE_RUNTIME mode.
This patch makes the generation of StaticDescriptorInitializer_$filename$
depend on whether LITE_RUNTIME is enabled. Note that this works only when
extensions are not used.

This lets us significantly decrease the number of static initializers generated
by protoc in LITE_RUNTIME mode (used in Chromium).
In LITE_RUNTIME mode, $adddescriptorsname$() is called the first time that
default_instance() is called (rather than being called during static init).

To benefit from this patch in LITE_RUNTIME mode without extensions, compile
with -DGOOGLE_PROTOBUF_NO_STATIC_INIT.

BUG=351
2012-05-04 11:16:09 +00:00
pliard@google.com
7cc257673c Improve GoogleOnceInit() in Protocol Buffers.
It is based on V8's new CallOnce(): http://codereview.chromium.org/9447052/.

This patch includes the following changes:
  - POD (no static initializer generated) and faster implementation on Windows.
  - GoogleOnceInit() can now take an additional parameter which is forwarded to
    the function provided by the user.

This patch is part of the static initializers removal initiative.
2012-04-10 08:15:18 +00:00
pliard@google.com
6a10204df6 Add missing guard in atomicops MSVC cc file 2012-03-08 14:27:30 +00:00
pliard@google.com
72afe6ee3f Fix build error in Mac atomicops. 2012-03-06 08:20:45 +00:00
pliard@google.com
324779ad70 Remove static initializer in wire_format_lite.cc. 2012-03-02 14:00:20 +00:00
pliard@google.com
f5de486b53 Add atomicops from V8. 2012-03-02 13:04:36 +00:00
liujisi@google.com
cb6dd4ef5f A workaround for MSVC 2010 x64 platform bug,
which affects proto compiler in generating field has_bit mask.
2011-07-05 21:05:40 +00:00
liujisi@google.com
2a89d0022d Add missing dll export macros. 2011-07-05 17:16:07 +00:00
liujisi@google.com
f36ae07c58 Update external gtest to 1.5.0. 2011-07-05 09:35:11 +00:00
liujisi@google.com
295a096023 Remove extra semicolon in primitive repeated field init code. 2011-07-05 06:16:40 +00:00
liujisi@google.com
5325de1808 Support for C-style comments in editors/proto.vim -- patch from infnty. 2011-07-05 04:52:47 +00:00
liujisi@google.com
3239fec94c Close resources properly for java tests and examples. 2011-06-07 03:51:33 +00:00
liujisi@google.com
e8e6eed0be Fixed a memory leak in python CPP implementation. 2011-06-07 03:38:28 +00:00
liujisi@google.com
7a6de0008a Update comments for globally unique extension number for custom options. 2011-05-25 06:25:24 +00:00
liujisi@google.com
02d7015ba8 Allow String to be used as message names. 2011-05-04 06:15:22 +00:00
liujisi@google.com
5c24564811 Update mainline version to 2.4.2-pre. 2011-05-03 07:06:03 +00:00
liujisi@google.com
5d99632b2d Update changelog for 2.4.1 release. 2011-04-30 15:29:09 +00:00
liujisi@google.com
03aaa0417f Python CPP implementation now requires c++ libprotobuf installed before running
setup.py to fix RPATH problem.
2011-04-29 02:12:48 +00:00
liujisi@google.com
5a3342823a Add missing plugin.h into extract_includes.bat script. 2011-04-29 02:00:57 +00:00
liujisi@google.com
23f42ceaf8 Define serailVersionUID for generated java class. 2011-04-29 01:57:30 +00:00
liujisi@google.com
3dc4a7be33 Fix incomplete comments. 2011-04-28 09:42:23 +00:00
liujisi@google.com
5a5e67a25d Make protobuf java JDK 1.5 compatible. 2011-04-28 09:37:40 +00:00
liujisi@google.com
9cf65b7dd2 Use fully qualified java.lang.Object in protoc java code. 2011-04-08 03:40:29 +00:00
jasonh@google.com
eab9b5d47f Fix issue 256: compute the correct size for negative enum values, which need to be sign extended. 2011-02-18 04:35:54 +00:00
liujisi@google.com
17d57dbbcd Add an intermediate method to propagate the friendship access to nested classes as a workaround for old compilers (e.g. gcc 3.4) 2011-02-07 19:03:53 +00:00
liujisi@google.com
c345db7d6b Update version number to 2.4.1 in common.h. 2011-02-03 07:22:32 +00:00
liujisi@google.com
01cba4b16e Update mainline version to 2.4.1-pre. 2011-02-02 16:45:06 +00:00
liujisi@google.com
7a26147997 Update the release date of 2.4.0 2011-02-02 14:04:22 +00:00
liujisi@google.com
bdfc1eab53 Add missing files into pom.xml for protobuf-lite. 2011-01-27 14:19:21 +00:00
liujisi@google.com
1e106bc320 Update contributors. 2011-01-24 06:31:14 +00:00
liujisi@google.com
42e67e081a update ez_setup.py to fix the python2.6 problem. 2011-01-21 05:46:41 +00:00
liujisi@google.com
d4a57f1557 Fix corner case in acx_pthread.m4 to work with -nostdlib, patch from Kacper Kowalik. 2011-01-13 06:44:11 +00:00
liujisi@google.com
57014ffa52 Use Subprocess::Win32ErrorMessage() in command_line_interface_unittest to make the it OS locale independent. 2010-12-21 05:56:35 +00:00
liujisi@google.com
5c20ca1fcc Escape C++ Trigraphs. 2010-12-21 05:33:13 +00:00
liujisi@google.com
334dfc21ec fix a typo in vcproj 2010-12-09 13:23:10 +00:00
liujisi@google.com
0458bb26f6 rollback the previous acx_pthread.m4 fix. 2010-12-09 09:28:49 +00:00
liujisi@google.com
6f2c3b8734 Boost version number to 2.4.0-pre, add more test cases for text_format.py about unicode field. 2010-12-09 08:59:21 +00:00
liujisi@google.com
9b7f6c544a Fix issues: 223 224 242. 2010-12-08 03:45:27 +00:00
liujisi@google.com
1fd96c43a0 Add new files for vcprojs, fix issues: 165, 211, 228, 240 2010-12-07 06:23:55 +00:00
liujisi@google.com
b4d64bf7f3 Remove hashmap.cc in vcproj files. 2010-12-06 07:50:26 +00:00
liujisi@google.com
5d8d2b0542 Fix issues: 200 202 211 215 237 246. 2010-12-06 06:20:14 +00:00
liujisi@google.com
2726e7a6eb Fix issues: 166 167 172 175 181 188 192 194 195. 2010-12-03 09:12:33 +00:00
liujisi@google.com
0acafda8f4 Fix byte encoding macros. 2010-12-01 04:13:50 +00:00
kenton@google.com
baac9c39fe Add some explicit casts to eliminate some warnings as described in issue 83 comment 17. 2010-11-30 23:54:03 +00:00
liujisi@google.com
33165fe0d5 Submit recent changes from internal branch. See CHANGES.txt for more details. 2010-11-02 13:14:58 +00:00
kenton@google.com
80aa23df6c Fix Issue 218: Check for protoc executable in vsprojects directory. 2010-09-28 21:58:36 +00:00
kenton@google.com
a4a9ef8c8b Roll back revision 313. A similar but far more exensive change was made in our internal branch, which will be integrated soon. 2010-09-17 23:20:04 +00:00
kenton@google.com
b541e3c966 Use native line endings on VS project files (they are, in fact, text). 2010-09-17 22:37:46 +00:00
kenton@google.com
27028bcb97 Fix issue 208. 2010-07-27 21:19:59 +00:00
kenton@google.com
0c293def6c Fix issue 207 2010-07-27 20:45:09 +00:00