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/ThreadingPthreads.cpp

    r47979 r48733  
    187187void setThreadNameInternal(const char* threadName)
    188188{
    189 #if PLATFORM(DARWIN) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !PLATFORM(IPHONE)
     189#if HAVE(PTHREAD_SETNAME_NP)
    190190    pthread_setname_np(threadName);
    191191#else
Note: See TracChangeset for help on using the changeset viewer.