Changeset 80 in vbox for trunk/src/VBox/VMM/PGMPhys.cpp
- Timestamp:
- Jan 17, 2007 8:45:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r29 r80 304 304 */ 305 305 pgmLock(pVM); 306 306 307 PPGMRAMRANGE pRam = CTXSUFF(pVM->pgm.s.pRamRanges); 307 308 while (pRam) … … 311 312 && (pRam->fFlags & MM_RAM_FLAGS_DYNAMIC_ALLOC)) 312 313 { 314 bool fRangeExists = false; 315 unsigned off = (GCPhys - pRam->GCPhys) >> PGM_DYNAMIC_CHUNK_SHIFT; 316 317 /** @note A request made from another thread may end up in EMT after somebody else has already allocated the range. */ 318 if (pRam->pavHCChunkHC[off]) 319 fRangeExists = true; 320 313 321 pgmUnlock(pVM); 322 if (fRangeExists) 323 return VINF_SUCCESS; 314 324 return pgmr3PhysGrowRange(pVM, GCPhys); 315 325 }
Note:
See TracChangeset
for help on using the changeset viewer.