Closed GoogleCodeExporter closed 9 years ago
Thanks! I've fixed the first three issues as you suggested.
For issue #4, I'm surprised it worked! -- I didn't realize windows had stdint.h
(maybe only some versions do?) Anyway, I have protected the central_freelist.h
#include by the appropriate #ifdef.
For issue #5, we use the angle brackets just as documentation that this file
will be installed (on unix) as part of the installation process. Angle vs
quotes is fine -- they're both the same here.
The tcmalloc.h in src is actually different from the one in src/google (or, for
windows, src/windows/google). (I know, it's confusing, that was a bad naming
choice I should probably fix.) We want to be #including the latter, so the
code as it is is correct. That should also resolve the two problems that you
were seeing earlier.
What problem were you seeing with the original #include of <google/tcmalloc.h>,
that prompted you to change it?
Original comment by csilv...@gmail.com
on 1 Jun 2011 at 6:21
Well there is no such file inside google directory, only tcmalloc.h.in is in
there?
Original comment by popiz...@gmail.com
on 1 Jun 2011 at 9:28
Yes, that's right, the file is created when 'configure' is run. (The same as
with config.h.)
In src/windows, there is a google/tcmalloc.h, because windows users don't run
'configure'.
Original comment by csilv...@gmail.com
on 1 Jun 2011 at 9:31
Have you thought about using CMake?
Original comment by popiz...@gmail.com
on 1 Jun 2011 at 9:34
Yes. I'm pretty happy with autotools in unix-land, and am not particularly
interested in moving off that. So cmake would just be a replacement for using
visual studio directly, for windows users. I don't know enough about windows
to know if that would be a win or not; I assume not since it adds another
dependency.
Original comment by csilv...@gmail.com
on 1 Jun 2011 at 10:34
By the way, r109 introduced a static |sys_alloc| member into src/system-alloc.h
(http://code.google.com/p/google-perftools/source/diff?spec=svn109&r=109&format=
side&path=/trunk/src/system-alloc.cc), which is then declared in
src/system-alloc.cc and used by tcmalloc.cc
IIUC on Windows src/windows/port.cc replaces src/system-alloc.cc
How comes then that |sys_alloc| is not defined in src/windows/port.cc?
Original comment by gli...@google.com
on 16 Jun 2011 at 10:32
You're right, we need to define a sys_alloc in port.cc or similar.
Original comment by csilv...@gmail.com
on 8 Jul 2011 at 4:10
(I'll make that fix for the next release.)
Original comment by csilv...@gmail.com
on 8 Jul 2011 at 5:03
This should be fixed in perftools 1.8, just released.
Original comment by csilv...@gmail.com
on 16 Jul 2011 at 1:31
Original issue reported on code.google.com by
popiz...@gmail.com
on 1 Jun 2011 at 6:47Attachments: