Ignore:
Timestamp:
Sep 24, 2009, 2:25:47 PM (16 years ago)
Author:
[email protected]
Message:

<rdar://problem/7215058> FastMalloc scavenging thread should be named

Reviewed by Sam Weinig.

  • wtf/FastMalloc.cpp:

(WTF::TCMalloc_PageHeap::scavengerThread): Set the thread name.

  • wtf/Platform.h: Move the knowledge of whether pthread_setname_np exists to here as HAVE(PTHREAD_SETNAME_NP).
  • wtf/ThreadingPthreads.cpp:

(WTF::setThreadNameInternal): Use HAVE(PTHREAD_SETNAME_NP).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r48731 r48733  
    22842284void TCMalloc_PageHeap::scavengerThread()
    22852285{
     2286#if HAVE(PTHREAD_SETNAME_NP)
     2287  pthread_setname_np("JavaScriptCore: FastMalloc scavenger");
     2288#endif
     2289
    22862290  while (1) {
    22872291      if (!shouldContinueScavenging()) {
Note: See TracChangeset for help on using the changeset viewer.