<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[287961] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/287961">287961</a></dd>
<dt>Author</dt> <dd>mark.lam@apple.com</dd>
<dt>Date</dt> <dd>2022-01-12 16:36:58 -0800 (Wed, 12 Jan 2022)</dd>
</dl>

<h3>Log Message</h3>
<pre>[Re-landing] Update hashThreadState() to exclude __opaque_flags.
https://bugs.webkit.org/show_bug.cgi?id=235081
rdar://86282584

Reviewed by Keith Miller.

Source/JavaScriptCore:

Removed some unused code.

* runtime/MachineContext.h:
(JSC::MachineContext::stackPointer):
(JSC::MachineContext::framePointer):
(JSC::MachineContext::instructionPointer):
(JSC::MachineContext::linkRegister):
(JSC::MachineContext::setStackPointer): Deleted.
(JSC::MachineContext::setFramePointer): Deleted.
(JSC::MachineContext::setLinkRegister): Deleted.

Source/WTF:

The __opaque_flags may be used by the OS, and may be altered without our knowledge.
Hence, our hash should not include the __opaque_flags field.

Also remove some unused code.

* wtf/PlatformRegisters.h:
* wtf/threads/Signals.cpp:
(WTF::hashThreadState):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeMachineContexth">trunk/Source/JavaScriptCore/runtime/MachineContext.h</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfPlatformRegistersh">trunk/Source/WTF/wtf/PlatformRegisters.h</a></li>
<li><a href="#trunkSourceWTFwtfthreadsSignalscpp">trunk/Source/WTF/wtf/threads/Signals.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (287960 => 287961)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog    2022-01-13 00:30:40 UTC (rev 287960)
+++ trunk/Source/JavaScriptCore/ChangeLog       2022-01-13 00:36:58 UTC (rev 287961)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2022-01-12  Mark Lam  <mark.lam@apple.com>
+
+        [Re-landing] Update hashThreadState() to exclude __opaque_flags.
+        https://bugs.webkit.org/show_bug.cgi?id=235081
+        rdar://86282584
+
+        Reviewed by Keith Miller.
+
+        Removed some unused code.
+
+        * runtime/MachineContext.h:
+        (JSC::MachineContext::stackPointer):
+        (JSC::MachineContext::framePointer):
+        (JSC::MachineContext::instructionPointer):
+        (JSC::MachineContext::linkRegister):
+        (JSC::MachineContext::setStackPointer): Deleted.
+        (JSC::MachineContext::setFramePointer): Deleted.
+        (JSC::MachineContext::setLinkRegister): Deleted.
+
</ins><span class="cx"> 2022-01-12  Commit Queue  <commit-queue@webkit.org>
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, reverting r287912.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeMachineContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/MachineContext.h (287960 => 287961)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/MachineContext.h     2022-01-13 00:30:40 UTC (rev 287960)
+++ trunk/Source/JavaScriptCore/runtime/MachineContext.h        2022-01-13 00:36:58 UTC (rev 287961)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  * Copyright (C) 2017 Yusuke Suzuki <utatane.tea@gmail.com>.
</span><del>- * Copyright (C) 2018 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2018-2022 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -39,11 +39,8 @@
</span><span class="cx"> template<typename T = void*> T stackPointer(const PlatformRegisters&);
</span><span class="cx"> 
</span><span class="cx"> #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT)
</span><del>-template<typename T = void*> void setStackPointer(PlatformRegisters&, T);
</del><span class="cx"> template<typename T = void*> T framePointer(const PlatformRegisters&);
</span><del>-template<typename T = void*> void setFramePointer(PlatformRegisters&, T);
</del><span class="cx"> inline MacroAssemblerCodePtr<PlatformRegistersLRPtrTag> linkRegister(const PlatformRegisters&);
</span><del>-inline void setLinkRegister(PlatformRegisters&, MacroAssemblerCodePtr<CFunctionPtrTag>);
</del><span class="cx"> inline std::optional<MacroAssemblerCodePtr<PlatformRegistersPCPtrTag>> instructionPointer(const PlatformRegisters&);
</span><span class="cx"> inline void setInstructionPointer(PlatformRegisters&, MacroAssemblerCodePtr<CFunctionPtrTag>);
</span><span class="cx"> 
</span><span class="lines">@@ -67,11 +64,8 @@
</span><span class="cx"> #endif // !USE(PLATFORM_REGISTERS_WITH_PROFILE)
</span><span class="cx"> 
</span><span class="cx"> template<typename T = void*> T stackPointer(const mcontext_t&);
</span><del>-template<typename T = void*> void setStackPointer(mcontext_t&, T);
</del><span class="cx"> template<typename T = void*> T framePointer(const mcontext_t&);
</span><del>-template<typename T = void*> void setFramePointer(mcontext_t&, T);
</del><span class="cx"> inline MacroAssemblerCodePtr<PlatformRegistersPCPtrTag> instructionPointer(const mcontext_t&);
</span><del>-inline void setInstructionPointer(mcontext_t&, MacroAssemblerCodePtr<CFunctionPtrTag>);
</del><span class="cx"> 
</span><span class="cx"> template<size_t N> void*& argumentPointer(mcontext_t&);
</span><span class="cx"> template<size_t N> void* argumentPointer(const mcontext_t&);
</span><span class="lines">@@ -150,19 +144,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-template<typename T>
-inline void setStackPointer(PlatformRegisters& regs, T value)
-{
-#if USE(PLATFORM_REGISTERS_WITH_PROFILE)
-    assertIsNotTagged(bitwise_cast<void*>(value));
-    WTF_WRITE_PLATFORM_REGISTERS_SP_WITH_PROFILE(regs, bitwise_cast<void*>(value));
-#elif USE(DARWIN_REGISTER_MACROS)
-    __darwin_arm_thread_state64_set_sp(regs, value);
-#else
-    stackPointerImpl(regs) = bitwise_cast<void*>(value);
-#endif
-}
-
</del><span class="cx"> #else // not OS(WINDOWS) || HAVE(MACHINE_CONTEXT)
</span><span class="cx"> 
</span><span class="cx"> template<typename T>
</span><span class="lines">@@ -229,19 +210,6 @@
</span><span class="cx">     return bitwise_cast<T>(stackPointerImpl(const_cast<mcontext_t&>(machineContext)));
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><del>-
-template<typename T>
-inline void setStackPointer(mcontext_t& machineContext, T value)
-{
-#if USE(PLATFORM_REGISTERS_WITH_PROFILE)
-    assertIsNotTagged(bitwise_cast<void*>(value));
-    WTF_WRITE_MACHINE_CONTEXT_SP_WITH_PROFILE(machineContext, bitwise_cast<void*>(value));
-#elif USE(DARWIN_REGISTER_MACROS)
-    return setStackPointer(machineContext->__ss, value);
-#else
-    stackPointerImpl(machineContext) = bitwise_cast<void*>(value);
-#endif
-}
</del><span class="cx"> #endif // HAVE(MACHINE_CONTEXT)
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -311,17 +279,6 @@
</span><span class="cx">     return bitwise_cast<T>(framePointerImpl(const_cast<PlatformRegisters&>(regs)));
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><del>-
-template<typename T>
-inline void setFramePointer(PlatformRegisters& regs, T value)
-{
-#if USE(PLATFORM_REGISTERS_WITH_PROFILE)
-    assertIsNotTagged(bitwise_cast<void*>(value));
-    WTF_WRITE_PLATFORM_REGISTERS_FP_WITH_PROFILE(regs, bitwise_cast<void*>(value));
-#else
-    framePointerImpl(regs) = bitwise_cast<void*>(value);
-#endif
-}
</del><span class="cx"> #endif // OS(WINDOWS) || HAVE(MACHINE_CONTEXT)
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -384,17 +341,6 @@
</span><span class="cx">     return bitwise_cast<T>(framePointerImpl(const_cast<mcontext_t&>(machineContext)));
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><del>-
-template<typename T>
-inline void setFramePointer(mcontext_t& machineContext, T value)
-{
-#if USE(PLATFORM_REGISTERS_WITH_PROFILE)
-    assertIsNotTagged(bitwise_cast<void*>(value));
-    WTF_WRITE_MACHINE_CONTEXT_FP_WITH_PROFILE(machineContext, bitwise_cast<void*>(value));
-#else
-    framePointerImpl(machineContext) = bitwise_cast<void*>(value);
-#endif
-}
</del><span class="cx"> #endif // HAVE(MACHINE_CONTEXT)
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -541,17 +487,6 @@
</span><span class="cx">     return MacroAssemblerCodePtr<PlatformRegistersPCPtrTag>(value);
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><del>-
-inline void setInstructionPointer(mcontext_t& machineContext, MacroAssemblerCodePtr<CFunctionPtrTag> value)
-{
-#if USE(PLATFORM_REGISTERS_WITH_PROFILE)
-    WTF_WRITE_MACHINE_CONTEXT_PC_WITH_PROFILE(machineContext, value.executableAddress());
-#elif USE(DARWIN_REGISTER_MACROS)
-    setInstructionPointer(machineContext->__ss, value);
-#else
-    instructionPointerImpl(machineContext) = value.executableAddress();
-#endif
-}
</del><span class="cx"> #endif // HAVE(MACHINE_CONTEXT)
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -568,15 +503,6 @@
</span><span class="cx"> #endif
</span><span class="cx">     return MacroAssemblerCodePtr<PlatformRegistersLRPtrTag>(value);
</span><span class="cx"> }
</span><del>-
-inline void setLinkRegister(PlatformRegisters& regs, MacroAssemblerCodePtr<CFunctionPtrTag> value)
-{
-#if USE(PLATFORM_REGISTERS_WITH_PROFILE)
-    WTF_WRITE_PLATFORM_REGISTERS_PC_WITH_PROFILE(regs, value.executableAddress());
-#else
-    __darwin_arm_thread_state64_set_lr_fptr(regs, value.executableAddress());
-#endif
-}
</del><span class="cx"> #endif // OS(DARWIN) && __DARWIN_UNIX03 && CPU(ARM64)
</span><span class="cx"> 
</span><span class="cx"> #if HAVE(MACHINE_CONTEXT)
</span></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (287960 => 287961)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog       2022-01-13 00:30:40 UTC (rev 287960)
+++ trunk/Source/WTF/ChangeLog  2022-01-13 00:36:58 UTC (rev 287961)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2022-01-12  Mark Lam  <mark.lam@apple.com>
+
+        [Re-landing] Update hashThreadState() to exclude __opaque_flags.
+        https://bugs.webkit.org/show_bug.cgi?id=235081
+        rdar://86282584
+
+        Reviewed by Keith Miller.
+
+        The __opaque_flags may be used by the OS, and may be altered without our knowledge.
+        Hence, our hash should not include the __opaque_flags field.
+
+        Also remove some unused code.
+
+        * wtf/PlatformRegisters.h:
+        * wtf/threads/Signals.cpp:
+        (WTF::hashThreadState):
+
</ins><span class="cx"> 2022-01-12  Elliott Williams  <emw@apple.com>
</span><span class="cx"> 
</span><span class="cx">         [Xcode] Configure each project for the legacy build system
</span></span></pre></div>
<a id="trunkSourceWTFwtfPlatformRegistersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/PlatformRegisters.h (287960 => 287961)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/PlatformRegisters.h 2022-01-13 00:30:40 UTC (rev 287960)
+++ trunk/Source/WTF/wtf/PlatformRegisters.h    2022-01-13 00:36:58 UTC (rev 287961)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  * Copyright (C) 2017 Yusuke Suzuki <utatane.tea@gmail.com>
</span><del>- * Copyright (C) 2019 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2019-2022 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -119,21 +119,12 @@
</span><span class="cx"> #define WTF_READ_PLATFORM_REGISTERS_SP_WITH_PROFILE(regs) \
</span><span class="cx">     reinterpret_cast<void*>(arm_thread_state64_get_sp(const_cast<PlatformRegisters&>(regs)))
</span><span class="cx"> 
</span><del>-#define WTF_WRITE_PLATFORM_REGISTERS_SP_WITH_PROFILE(regs, newPointer) \
-    arm_thread_state64_set_sp(regs, reinterpret_cast<uintptr_t>(newPointer))
-
</del><span class="cx"> #define WTF_READ_PLATFORM_REGISTERS_FP_WITH_PROFILE(regs) \
</span><span class="cx">     reinterpret_cast<void*>(arm_thread_state64_get_fp(const_cast<PlatformRegisters&>(regs)))
</span><span class="cx"> 
</span><del>-#define WTF_WRITE_PLATFORM_REGISTERS_FP_WITH_PROFILE(regs, newPointer) \
-    arm_thread_state64_set_fp(regs, reinterpret_cast<uintptr_t>(newPointer))
-
</del><span class="cx"> #define WTF_READ_PLATFORM_REGISTERS_LR_WITH_PROFILE(regs) \
</span><span class="cx">     threadStateLRInternal(const_cast<PlatformRegisters&>(regs))
</span><span class="cx"> 
</span><del>-#define WTF_WRITE_PLATFORM_REGISTERS_LR_WITH_PROFILE(regs, newPointer) \
-    arm_thread_state64_set_lr_fptr(regs, newPointer)
-
</del><span class="cx"> #define WTF_READ_PLATFORM_REGISTERS_PC_WITH_PROFILE(regs) \
</span><span class="cx">     threadStatePCInternal(const_cast<PlatformRegisters&>(regs))
</span><span class="cx"> 
</span><span class="lines">@@ -143,24 +134,12 @@
</span><span class="cx"> #define WTF_READ_MACHINE_CONTEXT_SP_WITH_PROFILE(machineContext) \
</span><span class="cx">     WTF_READ_PLATFORM_REGISTERS_SP_WITH_PROFILE(machineContext->__ss)
</span><span class="cx"> 
</span><del>-#define WTF_WRITE_MACHINE_CONTEXT_SP_WITH_PROFILE(machineContext, newPointer) \
-    WTF_WRITE_PLATFORM_REGISTERS_SP_WITH_PROFILE(machineContext->__ss, newPointer)
-
</del><span class="cx"> #define WTF_READ_MACHINE_CONTEXT_FP_WITH_PROFILE(machineContext) \
</span><span class="cx">     WTF_READ_PLATFORM_REGISTERS_FP_WITH_PROFILE(machineContext->__ss)
</span><span class="cx"> 
</span><del>-#define WTF_WRITE_MACHINE_CONTEXT_FP_WITH_PROFILE(machineContext, newPointer) \
-    WTF_WRITE_PLATFORM_REGISTERS_FP_WITH_PROFILE(machineContext->__ss, newPointer)
-
-#define WTF_WRITE_MACHINE_CONTEXT_LR_WITH_PROFILE(machineContext, newPointer) \
-    WTF_WRITE_PLATFORM_REGISTERS_LR_WITH_PROFILE(machineContext->__ss, newPointer)
-
</del><span class="cx"> #define WTF_READ_MACHINE_CONTEXT_PC_WITH_PROFILE(machineContext) \
</span><span class="cx">     WTF_READ_PLATFORM_REGISTERS_PC_WITH_PROFILE(machineContext->__ss)
</span><span class="cx"> 
</span><del>-#define WTF_WRITE_MACHINE_CONTEXT_PC_WITH_PROFILE(machineContext, newPointer) \
-    WTF_WRITE_PLATFORM_REGISTERS_PC_WITH_PROFILE(machineContext->__ss, newPointer)
-
</del><span class="cx"> #endif // USE(PLATFORM_REGISTERS_WITH_PROFILE)
</span><span class="cx"> 
</span><span class="cx"> using WTF::PlatformRegisters;
</span></span></pre></div>
<a id="trunkSourceWTFwtfthreadsSignalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/threads/Signals.cpp (287960 => 287961)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/threads/Signals.cpp 2022-01-13 00:30:40 UTC (rev 287960)
+++ trunk/Source/WTF/wtf/threads/Signals.cpp    2022-01-13 00:36:58 UTC (rev 287961)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2017-2020 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2017-2022 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -172,10 +172,14 @@
</span><span class="cx"> 
</span><span class="cx">     const uintptr_t* srcPtr = reinterpret_cast<const uintptr_t*>(source);
</span><span class="cx"> 
</span><del>-    for (size_t i = 0; i < threadStateSizeInPointers; ++i) {
</del><ins>+    // Exclude the __opaque_flags field which is reserved for OS use.
+    // __opaque_flags is at the end of the payload.
+    for (size_t i = 0; i < threadStateSizeInPointers - 1; ++i) {
</ins><span class="cx">         if (i != threadStatePCPointerIndex)
</span><span class="cx">             hash = ptrauth_sign_generic_data(srcPtr[i], hash);
</span><span class="cx">     }
</span><ins>+    const uint32_t* cpsrPtr = reinterpret_cast<const uint32_t*>(&srcPtr[threadStateSizeInPointers - 1]);
+    hash = ptrauth_sign_generic_data(static_cast<uint64_t>(*cpsrPtr), hash);
</ins><span class="cx">     
</span><span class="cx">     return hash;
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>