VirtualBox

Changeset 106405 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 16, 2024 9:24:15 PM (3 months ago)
Author:
vboxsync
Message:

VMM/IEM: Corrected the idxFreeHint setting at the end of iemExecMemAllocatorPrune, it was set to the end of the purned area rather than the start. bugref:10720

File:
1 edited

Legend:

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

    r106378 r106405  
    416416    }
    417417
    418     uint32_t const offPruneEnd = RT_MIN(offChunk + cbToPrune, cbChunk);
     418    uint32_t const offPruneStart = offChunk;
     419    uint32_t const offPruneEnd   = RT_MIN(offChunk + cbToPrune, cbChunk);
    419420
    420421    /*
     
    480481    /* Set the hint to the start of the pruned region. */
    481482    pExecMemAllocator->idxChunkHint  = idxChunk;
    482     pExecMemAllocator->aChunks[idxChunk].idxFreeHint = offChunk / IEMEXECMEM_ALT_SUB_ALLOC_UNIT_SIZE;
     483    pExecMemAllocator->aChunks[idxChunk].idxFreeHint = offPruneStart / IEMEXECMEM_ALT_SUB_ALLOC_UNIT_SIZE;
    483484
    484485    STAM_REL_PROFILE_STOP(&pExecMemAllocator->StatPruneProf, a);
Note: See TracChangeset for help on using the changeset viewer.

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