@@ -1326,11 +1326,13 @@ bool Ref_ScanDependentHandlesForPromotion(DhContext *pDhContext)
13261326 if (walk->pBuckets [i] != NULL )
13271327 {
13281328 int uCPUindex = getSlotNumber (pDhContext->m_pScanContext );
1329- // int uCPUlimit = getNumberOfSlots();
1330- // assert(uCPUlimit > 0);
1331- int uCPUstep = getThreadCount (pDhContext->m_pScanContext );
13321329 HHANDLETABLE* pTable = walk->pBuckets [i]->pTable ;
1333- // for ( ; uCPUindex < uCPUlimit; uCPUindex += uCPUstep)
1330+ #if !defined(FEATURE_SATORI_GC)
1331+ int uCPUlimit = getNumberOfSlots ();
1332+ assert (uCPUlimit > 0 );
1333+ int uCPUstep = getThreadCount (pDhContext->m_pScanContext );
1334+ for (; uCPUindex < uCPUlimit; uCPUindex += uCPUstep)
1335+ #endif
13341336 {
13351337 HHANDLETABLE hTable = pTable[uCPUindex];
13361338 if (hTable)
@@ -1411,11 +1413,13 @@ void Ref_ScanWeakInteriorPointersForRelocation(uint32_t condemned, uint32_t maxg
14111413 if (walk->pBuckets [i] != NULL )
14121414 {
14131415 int uCPUindex = getSlotNumber (sc);
1416+ HHANDLETABLE* pTable = walk->pBuckets [i]->pTable ;
1417+ #if !defined(FEATURE_SATORI_GC)
14141418 int uCPUlimit = getNumberOfSlots ();
14151419 assert (uCPUlimit > 0 );
14161420 int uCPUstep = getThreadCount (sc);
1417- HHANDLETABLE* pTable = walk-> pBuckets [i]-> pTable ;
1418- for ( ; uCPUindex < uCPUlimit; uCPUindex += uCPUstep)
1421+ for (; uCPUindex < uCPUlimit; uCPUindex += uCPUstep)
1422+ # endif
14191423 {
14201424 HHANDLETABLE hTable = pTable[uCPUindex];
14211425 if (hTable)
0 commit comments