Properly DACize TLB access for thread local statics
authorJuan Sebastian Hoyos Ayala <juan.hoyos@microsoft.com>
Thu, 29 Nov 2018 23:06:21 +0000 (15:06 -0800)
committerJuan Sebastian Hoyos Ayala <juan.hoyos@microsoft.com>
Thu, 29 Nov 2018 23:06:21 +0000 (15:06 -0800)
src/vm/threadstatics.h

index f23d669..e2c9339 100644 (file)
@@ -533,7 +533,7 @@ class ThreadStatics
     {
         SUPPORTS_DAC;
 
-        return dac_cast<PTR_ThreadLocalBlock>(&pThread->m_ThreadLocalBlock);
+        return dac_cast<PTR_ThreadLocalBlock>(PTR_TO_MEMBER_TADDR(Thread, pThread, m_ThreadLocalBlock));
     }
 
 #ifndef DACCESS_COMPILE