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

Issue 2640263003: tcmalloc: Use the default TLS model on arm-gcc, CrOS only. (Closed)

Created:
3 years, 11 months ago by Ting-Yuan (Leo) Huang
Modified:
3 years, 10 months ago
CC:
chromium-reviews, Dai Mikurube (NOT FULLTIME)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tcmalloc: Use the default TLS model on arm-gcc, CrOS only. gcc has a bug in __attribute__ ((tls_model ("initial-exec"))) on arm. This patch undoes the TLS optimization on arm-gcc. BUG=682840 TEST=threadlocal_heap_ works as expected; CreateCacheIfNecessary() was only called a few times in a reasonably long benchmark. Review-Url: https://codereview.chromium.org/2640263003 Cr-Commit-Position: refs/heads/master@{#445109} Committed: https://chromium.googlesource.com/chromium/src/+/07dcf42f46e211a53f7c33ed634cc5f416a3929f

Patch Set 1 #

Total comments: 3

Patch Set 2 : tcmalloc: Use the default TLS model on arm-gcc #

Total comments: 3

Patch Set 3 : tcmalloc: Use the default TLS model on arm-gcc, CrOS only. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M third_party/tcmalloc/README.chromium View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/thread_cache.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M third_party/tcmalloc/chromium/src/thread_cache.cc View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 33 (17 generated)
laszio
Although Chih-Chung's solution is strictly better, it requires substantially more work and may miss the ...
3 years, 11 months ago (2017-01-19 21:17:18 UTC) #3
llozano
https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc File third_party/tcmalloc/chromium/src/thread_cache.cc (right): https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc#newcode73 third_party/tcmalloc/chromium/src/thread_cache.cc:73: (defined(__clang__) || !defined(OS_CHROMEOS) || !defined(__arm__)) not gcc does not ...
3 years, 11 months ago (2017-01-19 21:38:42 UTC) #5
llozano
On 2017/01/19 21:38:42, llozano wrote: > https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc > File third_party/tcmalloc/chromium/src/thread_cache.cc (right): > > https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc#newcode73 > ...
3 years, 11 months ago (2017-01-19 21:40:46 UTC) #6
llozano
https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc File third_party/tcmalloc/chromium/src/thread_cache.cc (right): https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc#newcode73 third_party/tcmalloc/chromium/src/thread_cache.cc:73: (defined(__clang__) || !defined(OS_CHROMEOS) || !defined(__arm__)) On 2017/01/19 21:38:42, llozano ...
3 years, 11 months ago (2017-01-19 22:11:03 UTC) #7
laszio
Created a new bug on crbug.com/682840. https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc File third_party/tcmalloc/chromium/src/thread_cache.cc (right): https://codereview.chromium.org/2640263003/diff/1/third_party/tcmalloc/chromium/src/thread_cache.cc#newcode73 third_party/tcmalloc/chromium/src/thread_cache.cc:73: (defined(__clang__) || !defined(OS_CHROMEOS) ...
3 years, 11 months ago (2017-01-19 22:11:46 UTC) #9
Will Harris
I'd like to defer this review to primiano as I'm not too familiar with this ...
3 years, 11 months ago (2017-01-19 23:30:04 UTC) #15
primiano CORP (USE chromium)
On 2017/01/19 23:30:04, Will Harris wrote: > I'd like to defer this review to primiano ...
3 years, 11 months ago (2017-01-19 23:32:22 UTC) #16
llozano
On 2017/01/19 23:32:22, primiano CORP (USE chromium) wrote: > On 2017/01/19 23:30:04, Will Harris wrote: ...
3 years, 11 months ago (2017-01-20 00:02:57 UTC) #19
chihchung
LGTM.
3 years, 11 months ago (2017-01-20 01:52:25 UTC) #20
Primiano Tucci (use gerrit)
LGTM with one comment Also could you please update the cl description to mention something ...
3 years, 11 months ago (2017-01-20 14:31:05 UTC) #21
laszio
https://codereview.chromium.org/2640263003/diff/20001/third_party/tcmalloc/chromium/src/thread_cache.h File third_party/tcmalloc/chromium/src/thread_cache.h (right): https://codereview.chromium.org/2640263003/diff/20001/third_party/tcmalloc/chromium/src/thread_cache.h#newcode275 third_party/tcmalloc/chromium/src/thread_cache.h:275: !(!defined(__clang__) && defined(OS_CHROMEOS) && defined(__arm__)) On 2017/01/20 14:31:04, Primiano ...
3 years, 11 months ago (2017-01-20 17:56:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640263003/40001
3 years, 11 months ago (2017-01-20 17:59:49 UTC) #26
Primiano Tucci (use gerrit)
On 2017/01/20 17:56:12, laszio wrote: > https://codereview.chromium.org/2640263003/diff/20001/third_party/tcmalloc/chromium/src/thread_cache.h > File third_party/tcmalloc/chromium/src/thread_cache.h (right): > > https://codereview.chromium.org/2640263003/diff/20001/third_party/tcmalloc/chromium/src/thread_cache.h#newcode275 > ...
3 years, 11 months ago (2017-01-20 18:16:40 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/07dcf42f46e211a53f7c33ed634cc5f416a3929f
3 years, 11 months ago (2017-01-20 18:54:12 UTC) #30
Wez
Hallo wfh@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-08 00:13:36 UTC) #31
Will Harris
3 years, 10 months ago (2017-02-08 00:40:33 UTC) #33
lgtm from primiano is as good as lgtm from wfh

Powered by Google App Engine
This is Rietveld 408576698