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

Issue 330823004: Set chrome thread name in JVM. (Closed)

Created:
6 years, 6 months ago by byungchul
Modified:
6 years, 6 months ago
Reviewers:
nyquist, bulach, gunsch, sky, piman
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Set chrome thread name in JVM. JVM's AttachCurrentThread() resets thread name if the caller doesn't pass thread name. Pass it first time call of AttachCurrentThread(). Not call next times to reduce syscall (prctl) overhead. BUG=384603 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278551

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased #

Patch Set 3 : Define AttachCurrentThreadWithName and call it for all browser threads. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M base/android/jni_android.h View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M base/android/jni_android.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/browser_thread_impl.cc View 1 2 2 chunks +13 lines, -0 lines 4 comments Download

Messages

Total messages: 27 (0 generated)
byungchul
6 years, 6 months ago (2014-06-13 22:22:07 UTC) #1
bulach
thanks! one suggestion below, not sure if it'd work :) please let me know your ...
6 years, 6 months ago (2014-06-17 17:26:55 UTC) #2
byungchul
https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc File base/android/jni_android.cc (right): https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc#newcode87 base/android/jni_android.cc:87: if (!already_attached.Get().Get()) { On 2014/06/17 17:26:55, bulach wrote: > ...
6 years, 6 months ago (2014-06-17 17:51:06 UTC) #3
bulach
https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc File base/android/jni_android.cc (right): https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc#newcode87 base/android/jni_android.cc:87: if (!already_attached.Get().Get()) { On 2014/06/17 17:51:05, byungchul wrote: > ...
6 years, 6 months ago (2014-06-17 20:45:34 UTC) #4
byungchul
https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc File base/android/jni_android.cc (right): https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc#newcode87 base/android/jni_android.cc:87: if (!already_attached.Get().Get()) { On 2014/06/17 20:45:33, bulach wrote: > ...
6 years, 6 months ago (2014-06-17 21:11:11 UTC) #5
bulach
On 2014/06/17 21:11:11, byungchul wrote: > https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc > File base/android/jni_android.cc (right): > > https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc#newcode87 > ...
6 years, 6 months ago (2014-06-17 21:25:03 UTC) #6
byungchul
On 2014/06/17 21:25:03, bulach wrote: > On 2014/06/17 21:11:11, byungchul wrote: > > https://codereview.chromium.org/330823004/diff/1/base/android/jni_android.cc > ...
6 years, 6 months ago (2014-06-17 21:48:07 UTC) #7
bulach
here's a public url :) https://android.googlesource.com/platform/dalvik.git/+/master/vm/Thread.h I haven't counted, looks like a few hundred bytes? ...
6 years, 6 months ago (2014-06-17 21:57:16 UTC) #8
byungchul
On 2014/06/17 21:57:16, bulach wrote: > here's a public url :) > https://android.googlesource.com/platform/dalvik.git/+/master/vm/Thread.h > > ...
6 years, 6 months ago (2014-06-18 00:07:27 UTC) #9
bulach
On 2014/06/18 00:07:27, byungchul wrote: > On 2014/06/17 21:57:16, bulach wrote: > > here's a ...
6 years, 6 months ago (2014-06-18 01:12:02 UTC) #10
byungchul
On 2014/06/18 01:12:02, bulach wrote: > On 2014/06/18 00:07:27, byungchul wrote: > > On 2014/06/17 ...
6 years, 6 months ago (2014-06-18 01:38:04 UTC) #11
byungchul
PTAL. Implemented as suggested. And, verified with my project that most useful threads' names are ...
6 years, 6 months ago (2014-06-18 02:20:57 UTC) #12
bulach
lgtm, thanks!! (you'll need OWNERS for browser_thread_impl.cc)
6 years, 6 months ago (2014-06-18 15:50:12 UTC) #13
byungchul
Thank you, Marcus. Scott and Antoine, could you please review this, or add an owner ...
6 years, 6 months ago (2014-06-19 16:30:54 UTC) #14
piman
lgtm
6 years, 6 months ago (2014-06-19 20:07:18 UTC) #15
sky
https://codereview.chromium.org/330823004/diff/40001/content/browser/browser_thread_impl.cc File content/browser/browser_thread_impl.cc (right): https://codereview.chromium.org/330823004/diff/40001/content/browser/browser_thread_impl.cc#newcode226 content/browser/browser_thread_impl.cc:226: // Not to reset thread name to "Thread-???" by ...
6 years, 6 months ago (2014-06-19 20:48:18 UTC) #16
byungchul
The CQ bit was checked by byungchul@chromium.org
6 years, 6 months ago (2014-06-19 20:53:39 UTC) #17
byungchul
The CQ bit was unchecked by byungchul@chromium.org
6 years, 6 months ago (2014-06-19 20:53:42 UTC) #18
byungchul
https://codereview.chromium.org/330823004/diff/40001/content/browser/browser_thread_impl.cc File content/browser/browser_thread_impl.cc (right): https://codereview.chromium.org/330823004/diff/40001/content/browser/browser_thread_impl.cc#newcode226 content/browser/browser_thread_impl.cc:226: // Not to reset thread name to "Thread-???" by ...
6 years, 6 months ago (2014-06-19 20:56:30 UTC) #19
byungchul
The CQ bit was checked by byungchul@chromium.org
6 years, 6 months ago (2014-06-19 22:46:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/byungchul@chromium.org/330823004/40001
6 years, 6 months ago (2014-06-19 22:51:09 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-19 23:05:46 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 23:10:15 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_clang_dbg/builds/24575)
6 years, 6 months ago (2014-06-19 23:10:16 UTC) #24
byungchul
The CQ bit was checked by byungchul@chromium.org
6 years, 6 months ago (2014-06-19 23:56:14 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/byungchul@chromium.org/330823004/40001
6 years, 6 months ago (2014-06-19 23:57:50 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 00:38:33 UTC) #27
Message was sent while issue was closed.
Change committed as 278551

Powered by Google App Engine
This is Rietveld 408576698