This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 46b6c73 bug fix for event thread names 46b6c73 is described below commit 46b6c735c84926755362d4cf556a75c1c73d140d Author: Fei Deng <f...@oath.com> AuthorDate: Tue Aug 29 10:23:41 2017 -0500 bug fix for event thread names --- iocore/eventsystem/UnixEventProcessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc index b5001c0..7fc31e7 100644 --- a/iocore/eventsystem/UnixEventProcessor.cc +++ b/iocore/eventsystem/UnixEventProcessor.cc @@ -323,7 +323,6 @@ EventProcessor::spawn_event_threads(EventType ev_type, int n_threads, size_t sta t->id = i; // unfortunately needed to support affinity and NUMA logic. t->set_event_type(ev_type); t->schedule_spawn(&thread_initializer); - snprintf(thr_name, MAX_THREAD_NAME_LENGTH, "[%s %d]", tg->_name.get(), i); } tg->_count = n_threads; n_ethreads += n_threads; @@ -332,6 +331,7 @@ EventProcessor::spawn_event_threads(EventType ev_type, int n_threads, size_t sta // the group. Some thread set up depends on knowing the total number of threads but that can't be // safely updated until all the EThread instances are created and stored in the table. for (i = 0; i < n_threads; ++i) { + snprintf(thr_name, MAX_THREAD_NAME_LENGTH, "[%s %d]", tg->_name.get(), i); void *stack = Thread_Affinity_Initializer.alloc_stack(tg->_thread[i], stacksize); tg->_thread[i]->start(thr_name, stack, stacksize); } -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].