VirtualBox

Changeset 75862 in vbox


Ignore:
Timestamp:
Dec 2, 2018 12:33:01 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127066
Message:

Main/Guest: Added a few codereview comments, mainly in the guest base class area. Replaced the object ID management in GuestSession with a classic allocation bitmap approach as that's much less memory intensive than 16 byte structs in a insert-only std::map and an additional map tracking free 32-bit IDs after we run out. bugref:9313 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r75861 r75862  
    161161
    162162#ifdef DEBUG
    163         bool fDispatch = true;
    164163        /*
    165164         * Pre-check: If we got a status message with an error and VERR_TOO_MUCH_DATA
     
    169168         *            this further because we don't have a valid context ID.
    170169         */
     170        bool fDispatch = true;
    171171        if (   pCtxCb->uFunction == GUEST_EXEC_STATUS
    172172            && pSvcCb->mParms    >= 5)
     
    183183            {
    184184                LogFlowFunc(("Requested command with too much data, skipping dispatching ...\n"));
    185 
    186185                Assert(dataCb.uPID == 0);
    187186                fDispatch = false;
     187                rc = VINF_SUCCESS;
    188188            }
    189189        }
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