wtf is tcmalloc

179 views
Skip to first unread message

Keshav

unread,
Feb 12, 2013, 11:32:33 PM2/12/13
to chromi...@chromium.org
What the hell is TCMalloc, i don't understand, does chrome use tcmalloc, i am kinda lost in this massive chrome.gyp file.

I am having real troubles at tcmalloc.cc it always breaks at this file.

Thank you for reading

Regards

Keshav

Mike Frysinger

unread,
Feb 12, 2013, 11:35:10 PM2/12/13
to keshav.b...@gmail.com, chromium-dev
a simple google tells you the answer in the first result ...
http://lmgtfy.com/?q=tcmalloc
-mike
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>
>
>

Jake

unread,
Feb 12, 2013, 11:48:32 PM2/12/13
to keshav.b...@gmail.com, chromi...@chromium.org
tcmalloc is a crt malloc replacement that performs much better in multithreaded situations, etc.


--

Keshav

unread,
Feb 13, 2013, 12:02:16 AM2/13/13
to chromi...@chromium.org
I understand that, 

but i hit a memmory access violation, when i call BeginDownload on ResourceDispatcherHost form the IO thread at 

tcmalloc.cc >  ret = CheckMallocResult(heap->Allocate(size, cl)); (line 1097)

and i have no clue why.

Keshav

unread,
Feb 13, 2013, 12:03:04 AM2/13/13
to chromi...@chromium.org
is there a gyp variable i have to turn on, to have it function perfectly.

Alexander Potapenko

unread,
Feb 13, 2013, 2:23:26 AM2/13/13
to keshav.b...@gmail.com, chromium-dev

It is already supposed to work properly. Please file a bug if it does not. Make sure to include the steps to reproduce the problem.

--

Timur Iskhodzhanov

unread,
Feb 13, 2013, 2:42:19 AM2/13/13
to keshav.b...@gmail.com, chromium-dev
Also note that an assertion or access violation in TCMalloc can be
caused by a real bug in the non-TCMalloc code (e.g. double free in
Chrome).
Timur Iskhodzhanov,
Google Russia



2013/2/13 Alexander Potapenko <gli...@google.com>:
Reply all
Reply to author
Forward
0 new messages