VirtualBox

Changeset 68205 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 31, 2017 2:00:31 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117303
Message:

Devices/Storage/IOBufMgmt: Don't actually allocate memory when allocation is suspended. Otherwise large requests waiting for all memory being freed up are stalled by smaller requests which can still find free memory blocks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/IOBufMgmt.cpp

    r65220 r68205  
    431431    AssertReturn(cbIoBuf > 0, VERR_INVALID_PARAMETER);
    432432
    433     if (!pThis->cbFree)
     433    if (   !pThis->cbFree
     434        || pThis->fAllocSuspended)
    434435        return VERR_NO_MEMORY;
    435436
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