Changeset 93467 in webkit


Ignore:
Timestamp:
Aug 19, 2011 7:59:07 PM (13 years ago)
Author:
dbates@webkit.org
Message:

Only #include <signal.h> and require SA_RESTART when building with JSC_MULTIPLE_THREADS
https://bugs.webkit.org/show_bug.cgi?id=66617

Both <signal.h> and SA_RESTART usage are guarded behind ENABLE(JSC_MULTIPLE_THREADS).
But we cause a compile error if the platform doesn't support SA_RESTART regardless of
whether JSC_MULTIPLE_THREADS is enabled for the port. Instead, we shouldn't require
SA_RESTART support unless we are building with JSC_MULTIPLE_THREADS enabled.

Reviewed by Antonio Gomes.

  • heap/MachineStackMarker.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r93466 r93467  
     12011-08-19  Daniel Bates  <dbates@webkit.org>
     2
     3        Only #include <signal.h> and require SA_RESTART when building with JSC_MULTIPLE_THREADS
     4        https://bugs.webkit.org/show_bug.cgi?id=66617
     5
     6        Both <signal.h> and SA_RESTART usage are guarded behind ENABLE(JSC_MULTIPLE_THREADS).
     7        But we cause a compile error if the platform doesn't support SA_RESTART regardless of
     8        whether JSC_MULTIPLE_THREADS is enabled for the port. Instead, we shouldn't require
     9        SA_RESTART support unless we are building with JSC_MULTIPLE_THREADS enabled.
     10
     11        Reviewed by Antonio Gomes.
     12
     13        * heap/MachineStackMarker.cpp:
     14
    1152011-08-19  Filip Pizlo  <fpizlo@apple.com>
    216
  • trunk/Source/JavaScriptCore/heap/MachineStackMarker.cpp

    r85813 r93467  
    7777#endif
    7878
    79 #if USE(PTHREADS) && !OS(WINDOWS) && !OS(DARWIN)
     79#if ENABLE(JSC_MULTIPLE_THREADS) && USE(PTHREADS) && !OS(WINDOWS) && !OS(DARWIN)
    8080#include <signal.h>
    8181#ifndef SA_RESTART
Note: See TracChangeset for help on using the changeset viewer.