Changeset 48300 in webkit for trunk/JavaScriptCore
- Timestamp:
- Sep 11, 2009, 6:29:25 AM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r48298 r48300 1 2009-09-11 Jocelyn Turcotte <[email protected]> 2 3 Reviewed by Simon Hausmann. 4 5 Compiling JavaScriptCore on sparc 64 with gcc fails. 6 7 ThreadSafeShared uses the atomic __gnu_cxx::__exchange_and_add with an int, 8 however on sparc 64 the _Atomic_word argument is typedefed to long (8 bytes). 9 10 The patch disables WTF_USE_LOCKFREE_THREADSAFESHARED in ThreadSafeShared to use 11 a mutex instead when compiling for sparc 64 with gcc. 12 13 https://bugs.webkit.org/show_bug.cgi?id=29175 14 15 * wtf/Platform.h: 16 __sparc64__ is not defined on all OS. 17 Uses instead: __sparc__ && __arch64__ || __sparcv9 18 * wtf/Threading.h: 19 1 20 2009-09-11 Prasanth Ullattil <[email protected]> 2 21 -
trunk/JavaScriptCore/wtf/Platform.h
r48274 r48300 280 280 281 281 /* PLATFORM(SPARC64) */ 282 #if defined(__sparc 64__)282 #if defined(__sparc__) && defined(__arch64__) || defined (__sparcv9) 283 283 #define WTF_PLATFORM_SPARC64 1 284 284 #define WTF_PLATFORM_BIG_ENDIAN 1 -
trunk/JavaScriptCore/wtf/Threading.h
r48161 r48300 229 229 inline int atomicDecrement(int volatile* addend) { return OSAtomicDecrement32Barrier(const_cast<int*>(addend)); } 230 230 231 #elif COMPILER(GCC) 231 #elif COMPILER(GCC) && !PLATFORM(SPARC64) // sizeof(_Atomic_word) != sizeof(int) on sparc64 gcc 232 232 #define WTF_USE_LOCKFREE_THREADSAFESHARED 1 233 233
Note:
See TracChangeset
for help on using the changeset viewer.