Ignore:
Timestamp:
Mar 23, 2011, 5:06:15 PM (14 years ago)
Author:
[email protected]
Message:

<rdar://problem/7959320> Threads that use APIs above the BSD layer must be registered with the Obj-C GC.

Reviewed by Darin Adler.

  • wtf/ThreadingPthreads.cpp:

(WTF::initializeCurrentThreadInternal):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/ThreadingPthreads.cpp

    r75019 r81825  
    5656#endif
    5757
     58#if OS(MAC_OS_X) && !defined(BUILDING_ON_LEOPARD)
     59#include <objc/objc-auto.h>
     60#endif
     61
    5862namespace WTF {
    5963
     
    191195#endif
    192196
     197#if OS(MAC_OS_X) && !defined(BUILDING_ON_LEOPARD)
     198    // All threads that potentially use APIs above the BSD layer must be registered with the Objective-C
     199    // garbage collector in case API implementations use garbage-collected memory.
     200    objc_registerThreadWithCollector();
     201#endif
     202
    193203    ThreadIdentifier id = identifierByPthreadHandle(pthread_self());
    194204    ASSERT(id);
Note: See TracChangeset for help on using the changeset viewer.