Skip to content

Commit 9c7152a

Browse files
committed
couple tweaks and comments
1 parent 1728588 commit 9c7152a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/coreclr/nativeaot/Runtime/windows/CoffNativeCodeManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ struct CoffNativeMethodInfo
308308
// Ensure that CoffNativeMethodInfo fits into the space reserved by MethodInfo
309309
static_assert(sizeof(CoffNativeMethodInfo) <= sizeof(MethodInfo), "CoffNativeMethodInfo too big");
310310

311+
FORCEINLINE
311312
int CoffNativeCodeManager::LookupUnwindInfoIdx(uint32_t relativePc)
312313
{
313314
uint32_t** indices = m_initializedIndices;

src/coreclr/nativeaot/Runtime/windows/CoffNativeCodeManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class CoffNativeCodeManager : public ICodeManager
4444
PTR_PTR_VOID m_pClasslibFunctions;
4545
uint32_t m_nClasslibFunctions;
4646

47+
// used to publish a reference to the index once initialized.
48+
// if the reference is not null, the index can be accessed through it.
4749
uint32_t** volatile m_initializedIndices;
4850
uint32_t m_indexCount;
4951
uint32_t* m_indices[8];

0 commit comments

Comments
 (0)