Symbol not found: __ZN3WTF8LockBase10unlockSlowEv
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Dec 2017 19:19:11 +0000 (19:19 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Dec 2017 19:19:11 +0000 (19:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180691

Reviewed by Yusuke Suzuki.

* wtf/mac/DeprecatedSymbolsUsedBySafari.mm:
(WTF::LockBase::lockSlow):
(WTF::LockBase::unlockSlow):
Add back LockBase Symbols used by System Safari on 10.13.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225792 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/mac/DeprecatedSymbolsUsedBySafari.mm

index 3d2533b..ad7b263 100644 (file)
@@ -1,3 +1,15 @@
+2017-12-12  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Symbol not found: __ZN3WTF8LockBase10unlockSlowEv
+        https://bugs.webkit.org/show_bug.cgi?id=180691
+
+        Reviewed by Yusuke Suzuki.
+
+        * wtf/mac/DeprecatedSymbolsUsedBySafari.mm:
+        (WTF::LockBase::lockSlow):
+        (WTF::LockBase::unlockSlow):
+        Add back LockBase Symbols used by System Safari on 10.13.
+
 2017-12-12  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [WTF] Thread::create should have Thread::tryCreate
index cf578fb..267cea5 100644 (file)
@@ -129,4 +129,23 @@ void cancelCallOnMainThread(void (*function)(void*), void* context)
 }
 #endif
 
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101400
+struct LockBase {
+private:
+    WTF_EXPORT_PRIVATE void lockSlow();
+    WTF_EXPORT_PRIVATE void unlockSlow();
+    Atomic<uint8_t> m_byte;
+};
+
+void LockBase::lockSlow()
+{
+    DefaultLockAlgorithm::lockSlow(m_byte);
+}
+
+void LockBase::unlockSlow()
+{
+    DefaultLockAlgorithm::unlockSlow(m_byte, DefaultLockAlgorithm::Unfair);
+}
+#endif
+
 } // namespace WTF