VirtualBox

Ignore:
Timestamp:
Jul 21, 2008 6:43:39 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33566
Message:

IPRT: Fixed an overlooked race found by the threaded testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/handletablectx.cpp

    r10789 r10790  
    159159            }
    160160
    161             /* insert the table we allocated */
    162             if (pThis->cCur < pThis->cMax)
    163             {
    164                 uint32_t iLevel1New = pThis->cCur / RTHT_LEVEL2_ENTRIES;
     161            /* insert the table we allocated. */
     162            uint32_t iLevel1New = pThis->cCur / RTHT_LEVEL2_ENTRIES;
     163            if (    iLevel1New < pThis->cLevel1
     164                &&  pThis->cCur < pThis->cMax)
     165            {
    165166                pThis->papvLevel1[iLevel1New] = paTable;
    166167
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