VirtualBox

Changeset 90162 in vbox


Ignore:
Timestamp:
Jul 13, 2021 12:18:27 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145667
Message:

VMM/PGM: Fixed incorrect lock yield in PGMPhysBulkReleasePageMappingLocks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r87141 r90162  
    20742074
    20752075            /* Yield the lock: */
    2076             if ((i & 1023) == 1023)
     2076            if ((i & 1023) == 1023 && i + 1 < cPages)
    20772077            {
     2078                pgmUnlock(pVM);
    20782079                pgmLock(pVM);
    2079                 pgmUnlock(pVM);
    20802080            }
    20812081        }
     
    21092109
    21102110            /* Yield the lock: */
    2111             if ((i & 1023) == 1023)
     2111            if ((i & 1023) == 1023 && i + 1 < cPages)
    21122112            {
     2113                pgmUnlock(pVM);
    21132114                pgmLock(pVM);
    2114                 pgmUnlock(pVM);
    21152115            }
    21162116        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette