Title: [123875] trunk/Source/WTF
- Revision
- 123875
- Author
- [email protected]
- Date
- 2012-07-27 07:14:43 -0700 (Fri, 27 Jul 2012)
Log Message
set WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED for chromium android
https://bugs.webkit.org/show_bug.cgi?id=91746
Patch by Wei James <[email protected]> on 2012-07-27
Reviewed by Adam Barth.
This patch is part of efforts to enable web audio for chromium android.
Web audio component needs to use atomicIncrement and atomicDecrement,
which are enabled by this MACRO.
As mentioned in https://bugs.webkit.org/show_bug.cgi?id=89428#c19, make
this patch standalone.
* wtf/Atomics.h:
(WTF):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (123874 => 123875)
--- trunk/Source/WTF/ChangeLog 2012-07-27 14:04:27 UTC (rev 123874)
+++ trunk/Source/WTF/ChangeLog 2012-07-27 14:14:43 UTC (rev 123875)
@@ -1,3 +1,20 @@
+2012-07-27 Wei James <[email protected]>
+
+ set WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED for chromium android
+ https://bugs.webkit.org/show_bug.cgi?id=91746
+
+ Reviewed by Adam Barth.
+
+ This patch is part of efforts to enable web audio for chromium android.
+ Web audio component needs to use atomicIncrement and atomicDecrement,
+ which are enabled by this MACRO.
+
+ As mentioned in https://bugs.webkit.org/show_bug.cgi?id=89428#c19, make
+ this patch standalone.
+
+ * wtf/Atomics.h:
+ (WTF):
+
2012-07-26 Arnaud Renevier <[email protected]>
constructing TypedArray from another TypedArray is slow
Modified: trunk/Source/WTF/wtf/Atomics.h (123874 => 123875)
--- trunk/Source/WTF/wtf/Atomics.h 2012-07-27 14:04:27 UTC (rev 123874)
+++ trunk/Source/WTF/wtf/Atomics.h 2012-07-27 14:14:43 UTC (rev 123875)
@@ -106,6 +106,7 @@
inline int atomicDecrement(int volatile* addend) { return static_cast<int>(atomic_sub_value(reinterpret_cast<unsigned volatile*>(addend), 1)) - 1; }
#elif OS(ANDROID)
+#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1
inline int atomicIncrement(int volatile* addend) { return __atomic_inc(addend); }
inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend); }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes