VirtualBox

Changeset 101192 in vbox for trunk


Ignore:
Timestamp:
Sep 20, 2023 12:27:00 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159165
Message:

IPRT/mem: Fix assertion in generic ASMBitFirstClear triggered by rtHeapPageIntBlockAllocatorAlloc. bugref:10370

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/mempage-heap.cpp

    r101162 r101192  
    250250        if (pChunk->cFree > 0)
    251251        {
    252             int idxBlock = ASMBitFirstClear(&pChunk->bmAlloc[0], RT_MIN(RTHEAPPAGEBLOCKALLOCCHUNK_MAX_BLOCKS, pChunk->cBlocks));
     252            uint32_t const cBits = RT_ALIGN_32(pChunk->cBlocks, 64);
     253            int idxBlock = ASMBitFirstClear(&pChunk->bmAlloc[0], RT_MIN(RTHEAPPAGEBLOCKALLOCCHUNK_MAX_BLOCKS, cBits));
    253254            if (idxBlock >= 0)
    254255            {
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