VirtualBox

Changeset 75868 in vbox


Ignore:
Timestamp:
Dec 2, 2018 1:34:54 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127072
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/GuestSessionImpl.cpp

    r75861 r75868  
    21032103    AssertMsgStmt(ASMBitTestAndClear(&mData.bmObjectIds, idObject), ("idObject=%#x\n", idObject), rc = VERR_NOT_FOUND);
    21042104
    2105     SessionObjects::const_iterator ItObj = mData.mObjects.find(idObject);
     2105    SessionObjects::iterator ItObj = mData.mObjects.find(idObject);
    21062106    AssertMsgReturn(ItObj != mData.mObjects.end(), ("idObject=%#x\n", idObject), VERR_NOT_FOUND);
    21072107    mData.mObjects.erase(ItObj);
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