Title: [230200] trunk/Source/WTF
Revision
230200
Author
tpop...@redhat.com
Date
2018-04-03 05:42:09 -0700 (Tue, 03 Apr 2018)

Log Message

Unreviewed, fix the unused variable compilation warning

Move the ucontext_t code under the HAVE(MACHINE_CONTEXT). Triggered
on the PPC64 machine.

* wtf/ThreadingPthreads.cpp:
(WTF::Thread::signalHandlerSuspendResume):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (230199 => 230200)


--- trunk/Source/WTF/ChangeLog	2018-04-03 11:14:00 UTC (rev 230199)
+++ trunk/Source/WTF/ChangeLog	2018-04-03 12:42:09 UTC (rev 230200)
@@ -1,3 +1,13 @@
+2018-04-03  Tomas Popela  <tpop...@redhat.com>
+
+        Unreviewed, fix the unused variable compilation warning
+
+        Move the ucontext_t code under the HAVE(MACHINE_CONTEXT). Triggered
+        on the PPC64 machine.
+
+        * wtf/ThreadingPthreads.cpp:
+        (WTF::Thread::signalHandlerSuspendResume):
+
 2018-04-02  Saam Barati  <sbar...@apple.com>
 
         bmalloc should compute its own estimate of its footprint

Modified: trunk/Source/WTF/wtf/ThreadingPthreads.cpp (230199 => 230200)


--- trunk/Source/WTF/wtf/ThreadingPthreads.cpp	2018-04-03 11:14:00 UTC (rev 230199)
+++ trunk/Source/WTF/wtf/ThreadingPthreads.cpp	2018-04-03 12:42:09 UTC (rev 230200)
@@ -156,10 +156,10 @@
         return;
     }
 
-    ucontext_t* userContext = static_cast<ucontext_t*>(ucontext);
     ASSERT_WITH_MESSAGE(!isOnAlternativeSignalStack(), "Using an alternative signal stack is not supported. Consider disabling the concurrent GC.");
 
 #if HAVE(MACHINE_CONTEXT)
+    ucontext_t* userContext = static_cast<ucontext_t*>(ucontext);
     thread->m_platformRegisters = &registersFromUContext(userContext);
 #else
     PlatformRegisters platformRegisters { getApproximateStackPointer() };
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to