VirtualBox

Changeset 72054 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 27, 2018 9:18:51 AM (7 years ago)
Author:
vboxsync
Message:

*: RTListMove no longer need the call to init the destination list to workaround buggy behavior when when the source is empty.

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/usbip/USBProxyDevice-usbip.cpp

    r69500 r72054  
    12631263    RTLISTANCHOR ListUrbsPending;
    12641264
    1265     RTListInit(&ListUrbsPending);
    12661265    int rc = RTSemFastMutexRequest(pProxyDevUsbIp->hMtxLists);
    12671266    AssertRC(rc);
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r71931 r72054  
    18221822    /* Get local copy of the list of loaded commands. */
    18231823    RTLISTANCHOR listLoadedCommands;
    1824     RTListInit(&listLoadedCommands); /* RTListMove does not touch the destination is the source list is empty. */
    18251824    RTListMove(&listLoadedCommands, &pThis->listHGCMCmd);
    18261825
  • trunk/src/VBox/Runtime/testcase/tstRTList.cpp

    r69111 r72054  
    131131    /* Move the list to a new one. */
    132132    RTLISTANCHOR ListHeadNew;
    133 
    134     RTListInit(&ListHeadNew);
    135133    RTListMove(&ListHeadNew, &ListHead);
    136134
  • trunk/src/VBox/Storage/VD.cpp

    r72051 r72054  
    35093509    PVDISK pDisk = pIoStorage->pVDIo->pDisk;
    35103510    RTLISTANCHOR ListIoCtxWaiting;
    3511     RTListInit(&ListIoCtxWaiting);
    35123511    bool fFlush;
    35133512
  • trunk/src/VBox/VMM/VMMR3/PDMBlkCache.cpp

    r70779 r72054  
    697697    RTLISTANCHOR ListDirtyNotCommitted;
    698698
    699     RTListInit(&ListDirtyNotCommitted);
    700699    RTSpinlockAcquire(pBlkCache->LockList);
    701700    RTListMove(&ListDirtyNotCommitted, &pBlkCache->ListDirtyNotCommitted);
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