Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Issue 10818025: tcmalloc: move includes for mallinfo from tcmalloc.cc to tcmalloc.h (Closed)

Created:
8 years, 5 months ago by hans
Modified:
8 years, 5 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

It is important that 'struct mallinfo' is defined in the header file. Otherwise, Clang will warn about the declaration of 'tc_mallinfo' because it has C-linkage, but has an incomplete return type. This was sent upstream in http://code.google.com/p/gperftools/issues/detail?id=450 BUG=138571 TEST=it builds without warning Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148386

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix tcmalloc instead #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -13 lines) Patch
M third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h View 1 1 chunk +11 lines, -1 line 1 comment Download
M third_party/tcmalloc/chromium/src/tcmalloc.cc View 1 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
hans
8 years, 5 months ago (2012-07-24 13:09:43 UTC) #1
Nico
https://chromiumcodereview.appspot.com/10818025/diff/1/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://chromiumcodereview.appspot.com/10818025/diff/1/base/allocator/allocator.gyp#newcode400 base/allocator/allocator.gyp:400: # with c-style linkage. Do you know why the ...
8 years, 5 months ago (2012-07-24 13:38:16 UTC) #2
hans
https://chromiumcodereview.appspot.com/10818025/diff/1/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://chromiumcodereview.appspot.com/10818025/diff/1/base/allocator/allocator.gyp#newcode400 base/allocator/allocator.gyp:400: # with c-style linkage. On 2012/07/24 13:38:16, Nico wrote: ...
8 years, 5 months ago (2012-07-24 13:49:13 UTC) #3
hans
On 2012/07/24 13:49:13, hans wrote: > However, 'struct mallinfo' is a C++ type, Wait a ...
8 years, 5 months ago (2012-07-24 13:53:32 UTC) #4
Nico
(Fill-in from chat: hans discovered that the warning goes away if he adds `#include <malloc.h>`, ...
8 years, 5 months ago (2012-07-24 14:15:23 UTC) #5
hans
On 2012/07/24 14:15:23, Nico wrote: > (Fill-in from chat: hans discovered that the warning goes ...
8 years, 5 months ago (2012-07-24 16:13:21 UTC) #6
hans
New patch. This patch was also sent upstream: http://code.google.com/p/gperftools/issues/detail?id=450
8 years, 5 months ago (2012-07-24 16:20:34 UTC) #7
Nico
https://chromiumcodereview.appspot.com/10818025/diff/9001/third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h File third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h (right): https://chromiumcodereview.appspot.com/10818025/diff/9001/third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h#newcode57 third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h:57: #ifdef HAVE_STRUCT_MALLINFO HAVE_STRUCT_MALLINFO etc are defined in third_party/tcmalloc/chromium/src/config.h , ...
8 years, 5 months ago (2012-07-24 16:37:10 UTC) #8
hans
On 2012/07/24 16:37:10, Nico wrote: > https://chromiumcodereview.appspot.com/10818025/diff/9001/third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h > File third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h (right): > > https://chromiumcodereview.appspot.com/10818025/diff/9001/third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h#newcode57 > ...
8 years, 5 months ago (2012-07-24 16:52:08 UTC) #9
Nico
On 2012/07/24 16:52:08, hans wrote: > On 2012/07/24 16:37:10, Nico wrote: > > > https://chromiumcodereview.appspot.com/10818025/diff/9001/third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h ...
8 years, 5 months ago (2012-07-24 16:58:14 UTC) #10
hans
On 2012/07/24 16:58:14, Nico wrote: > https://chromiumcodereview.appspot.com/10818025/diff/9001/third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h#newcode57 > > > third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h:57: #ifdef > > > ...
8 years, 5 months ago (2012-07-24 17:03:12 UTC) #11
Nico
lgtm then
8 years, 5 months ago (2012-07-24 17:08:24 UTC) #12
hans
willchan: ping?
8 years, 5 months ago (2012-07-25 07:53:30 UTC) #13
willchan no longer on Chromium
My preferred method would be for you to make the change upstream and then merge ...
8 years, 5 months ago (2012-07-25 17:42:54 UTC) #14
hans
On 2012/07/25 17:42:54, willchan wrote: > My preferred method would be for you to make ...
8 years, 5 months ago (2012-07-25 17:58:50 UTC) #15
willchan no longer on Chromium
Yes, LGTM then.
8 years, 5 months ago (2012-07-25 18:01:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hans@chromium.org/10818025/9001
8 years, 5 months ago (2012-07-25 18:02:27 UTC) #17
commit-bot: I haz the power
8 years, 5 months ago (2012-07-25 19:58:17 UTC) #18
Change committed as 148386

Powered by Google App Engine
This is Rietveld 408576698