[GHC] #14153: Change worker thread name to something mentioning original process name
GHC
ghc-devs at haskell.org
Tue Sep 26 02:44:22 UTC 2017
#14153: Change worker thread name to something mentioning original process name
-------------------------------------+-------------------------------------
Reporter: enolan | Owner: enolan
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: Runtime System | Version: 8.2.1
Resolution: | Keywords:
Operating System: Linux | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): phab:D4001
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"d07b8c7ae8bc22a7c36c96cb3fd800aecdde6eac/ghc" d07b8c7/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="d07b8c7ae8bc22a7c36c96cb3fd800aecdde6eac"
Include original process name in worker thread name (#14153)
Prior to this commit, worker OS thread were renamed to "ghc_worker" when
spawned. This was annoying when reading debugging messages that print
the process name because it doesn't tell you *which* Haskell program is
generating the message.
This commit changes it to "original_process_name:w", truncating the
original name to fit in the kernel buffer if neccesary.
Test Plan: ./validate
Reviewers: austin, bgamari, erikd, simonmar
Reviewed By: bgamari
Subscribers: Phyx, rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4001
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14153#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list