Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3954)

Issue 5654057: Add atomicops from V8. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by philippe
Modified:
12 years, 1 month ago
Base URL:
http://protobuf.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add atomicops from V8. This is needed to provide a better implementation of GoogleOnceInit() on which depend the static initializers removal. BUG=351

Patch Set 1 #

Patch Set 2 : Remove ::internal from the namespace #

Patch Set 3 : Add globals.h to Makefile.am #

Patch Set 4 : Remove ::internal from namespace in globals.h #

Patch Set 5 : Fix build on Windows (name clash in extension_set.cc because of the inclusion of windows.h) #

Total comments: 13

Patch Set 6 : Update #

Patch Set 7 : Fix build on Windows #

Patch Set 8 : Update Makefile and vsprojects #

Patch Set 9 : Add comment about upstream and update extract_includes.bat #

Patch Set 10 : Add atomicops_internals_x86_msvc.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1659 lines, -0 lines) Patch
M src/Makefile.am View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops.h View 1 2 3 4 5 6 7 8 1 chunk +179 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_arm_gcc.h View 1 2 3 4 5 1 chunk +148 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_mips_gcc.h View 1 2 3 4 5 1 chunk +184 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_x86_gcc.h View 1 2 3 4 5 1 chunk +290 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc View 1 2 3 4 5 6 7 8 9 1 chunk +137 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_x86_macosx.h View 1 2 3 4 5 1 chunk +304 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_x86_msvc.h View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc View 1 2 3 4 5 6 1 chunk +106 lines, -0 lines 0 comments Download
A src/google/protobuf/stubs/platform_macros.h View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
M vsprojects/extract_includes.bat View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M vsprojects/libprotobuf.vcproj View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M vsprojects/libprotobuf-lite.vcproj View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 11
philippe
12 years, 2 months ago (2012-02-11 00:17:10 UTC) #1
kenton
Thanks for doing this. It will be nice to have these atomic ops available to ...
12 years, 2 months ago (2012-02-17 00:05:53 UTC) #2
philippe
Hi Kenton, Thanks for reviewing my CL. I added the flag you mentioned and made ...
12 years, 2 months ago (2012-02-17 17:08:36 UTC) #3
kenton
Regarding other platforms: My thought was that we can say: "If your compiler is not ...
12 years, 2 months ago (2012-02-17 20:23:57 UTC) #4
philippe
On 2012/02/17 20:23:57, kenton wrote: > Regarding other platforms: My thought was that we can ...
12 years, 2 months ago (2012-02-20 10:39:31 UTC) #5
kenton
(Leaving it to liujisi to pick this up from here.) On Mon, Feb 20, 2012 ...
12 years, 2 months ago (2012-02-22 02:16:39 UTC) #6
Jisi Liu
LGTM Thanks for the change. Please also update the http://code.google.com/p/protobuf/source/browse/trunk/vsprojects/extract_includes.bat to include those headers. BTW, ...
12 years, 2 months ago (2012-02-22 20:01:44 UTC) #7
philippe
On 2012/02/22 20:01:44, Pherl Liu wrote: > LGTM > > Thanks for the change. Please ...
12 years, 2 months ago (2012-02-23 09:04:51 UTC) #8
Jisi Liu
LGTM I added you(pliard@google.com) as a committer to the project, as you committed to maintain ...
12 years, 2 months ago (2012-03-01 19:33:06 UTC) #9
philippe
On 2012/03/01 19:33:06, Pherl Liu wrote: > LGTM > > I added mailto:you%28pliard@google.com) as a ...
12 years, 2 months ago (2012-03-02 11:43:52 UTC) #10
philippe
12 years, 1 month ago (2012-03-02 13:06:28 UTC) #11
On 2012/03/02 11:43:52, philippe wrote:
> On 2012/03/01 19:33:06, Pherl Liu wrote:
> > LGTM
> > 
> > I added mailto:you%28pliard@google.com) as a committer to the project, as
you
> committed
> > to maintain the atomicops in future :) Feel free to submit the change.
> > 
> > On 2012/02/23 09:04:51, philippe wrote:
> > > On 2012/02/22 20:01:44, Pherl Liu wrote:
> > > > LGTM
> > > > 
> > > > Thanks for the change. Please also update the
> > > >
> > >
> >
>
http://code.google.com/p/protobuf/source/browse/trunk/vsprojects/extract_incl...
> > > > to include those headers.
> > > > 
> > > > BTW, maybe mention something in the comments about the upstream(v8)? Do
we
> > > have
> > > > plans integrate new changes from the v8 in the future (e.g. bug fixes,
> more
> > > > platforms, etc)?
> > > 
> > > Hi Pherl,
> > > 
> > > Thanks for reviewing this CL.
> > > 
> > > I updated extract_includes.bat and added a comment in atomicops.h about
> > > upstream. I can maintain the atomicops files here in Protobuf and also the
> > > improved GoogleOnceInit() implementation (currently being integrated and
> > > reviewed in V8) which will follow in the next CL.
> 
> Great, thanks!

Committed as r409. Thanks for the review.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b