Changeset 66883 in webkit


Ignore:
Timestamp:
Sep 7, 2010 8:15:58 AM (14 years ago)
Author:
zoltan@webkit.org
Message:

2010-09-07 Zoltan Horvath <zoltan@webkit.org>

Reviewed by Darin Adler.

REGRESSION(66741): Undefined pthread macros
https://bugs.webkit.org/show_bug.cgi?id=45246

PTHREAD_MUTEX_NORMAL and PTHREAD_MUTEX_DEFAULT (introduced in r60487) are not defined on Linux,
but used in a statement. Add an additional check to test this.

  • wtf/FastMalloc.cpp: (WTF::TCMalloc_PageHeap::initializeScavenger):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r66856 r66883  
     12010-09-07  Zoltan Horvath  <zoltan@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION(66741): Undefined pthread macros
     6        https://bugs.webkit.org/show_bug.cgi?id=45246
     7
     8        PTHREAD_MUTEX_NORMAL and PTHREAD_MUTEX_DEFAULT (introduced in r60487) are not defined on Linux,
     9        but used in a statement. Add an additional check to test this.
     10
     11        * wtf/FastMalloc.cpp:
     12        (WTF::TCMalloc_PageHeap::initializeScavenger):
     13
    1142010-09-06  Oliver Hunt  <oliver@apple.com>
    215
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r66741 r66883  
    14941494{
    14951495    // Create a non-recursive mutex.
    1496 #if PTHREAD_MUTEX_NORMAL == PTHREAD_MUTEX_DEFAULT
     1496#if !defined(PTHREAD_MUTEX_NORMAL) || PTHREAD_MUTEX_NORMAL == PTHREAD_MUTEX_DEFAULT
    14971497    pthread_mutex_init(&m_scavengeMutex, 0);
    14981498#else
Note: See TracChangeset for help on using the changeset viewer.