Changeset 20060 in vbox
- Timestamp:
- May 27, 2009 9:38:46 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 47800
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMInternal.h
r19903 r20060 38 38 #include <VBox/hwaccm.h> 39 39 #include <iprt/avl.h> 40 #include <iprt/asm.h> 40 41 #include <iprt/assert.h> 41 42 #include <iprt/critsect.h> … … 1644 1645 * It's a hack required because of REMR3NotifyHandlerPhysicalDeregister. */ 1645 1646 bool volatile fReusedFlushPending; 1647 bool bPadding1; 1648 1646 1649 /** Used to indicate that this page can't be flushed. Important for cr3 root pages or shadow pae pd pages). */ 1647 uint 8_tcLocked;1650 uint32_t cLocked; 1648 1651 } PGMPOOLPAGE, *PPGMPOOLPAGE, **PPPGMPOOLPAGE; 1649 1652 /** Pointer to a const pool page. */ … … 4445 4448 DECLINLINE(void) pgmPoolLockPage(PPGMPOOL pPool, PPGMPOOLPAGE pPage) 4446 4449 { 4447 pPage->cLocked++;4450 ASMAtomicIncU32(&pPage->cLocked); 4448 4451 } 4449 4452 … … 4458 4461 { 4459 4462 Assert(pPage->cLocked); 4460 pPage->cLocked--;4463 ASMAtomicDecU32(&pPage->cLocked); 4461 4464 } 4462 4465 -
trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp
r19733 r20060 673 673 GEN_CHECK_OFF(PGMPOOLPAGE, fCached); 674 674 GEN_CHECK_OFF(PGMPOOLPAGE, fReusedFlushPending); 675 GEN_CHECK_OFF(PGMPOOLPAGE, cLocked); 675 676 GEN_CHECK_SIZE(PGMPOOL); 676 677 GEN_CHECK_OFF(PGMPOOL, pVMR3);
Note:
See TracChangeset
for help on using the changeset viewer.