Skip to content

Commit a22f526

Browse files
authored
Merge pull request dotnet#21287 from hoyosjs/fix-tls-daccast
Properly DACize TLB access for thread local statics
2 parents 50e2a0e + 6ac2313 commit a22f526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/threadstatics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class ThreadStatics
533533
{
534534
SUPPORTS_DAC;
535535

536-
return dac_cast<PTR_ThreadLocalBlock>(&pThread->m_ThreadLocalBlock);
536+
return dac_cast<PTR_ThreadLocalBlock>(PTR_TO_MEMBER_TADDR(Thread, pThread, m_ThreadLocalBlock));
537537
}
538538

539539
#ifndef DACCESS_COMPILE

0 commit comments

Comments
 (0)