summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Hoyos <juan.hoyos@microsoft.com>2018-11-29 18:19:08 -0800
committerGitHub <noreply@github.com>2018-11-29 18:19:08 -0800
commita22f526040cebe5c721adb0eafd4f39dae5faac1 (patch)
treeeeb739f90f81d4dfd5eb82f7ca1882d061ee8dec
parent50e2a0eac6f9cd3bf620c336079b4eb497cc0a99 (diff)
parent6ac23132a00c7bf750c414852747b5be25a472b7 (diff)
downloadcoreclr-a22f526040cebe5c721adb0eafd4f39dae5faac1.tar.gz
coreclr-a22f526040cebe5c721adb0eafd4f39dae5faac1.tar.bz2
coreclr-a22f526040cebe5c721adb0eafd4f39dae5faac1.zip
Merge pull request #21287 from hoyosjs/fix-tls-daccast
Properly DACize TLB access for thread local statics
-rw-r--r--src/vm/threadstatics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/threadstatics.h b/src/vm/threadstatics.h
index f23d669a81..e2c9339b2e 100644
--- a/src/vm/threadstatics.h
+++ b/src/vm/threadstatics.h
@@ -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