VirtualBox

Changeset 29477 in vbox


Ignore:
Timestamp:
May 14, 2010 2:59:29 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61605
Message:

fileaio-posix.cpp: Fix assertion (It is possible to have 0 requests submitted on return if the host limit was reached already due to another process. OS X is an example which has a global limit of 16 concurrent aio requests for all processes. Reached easily when two VMs are running...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fileaio-posix.cpp

    r29449 r29477  
    749749                }
    750750                ASMAtomicAddS32(&pCtxInt->cRequests, cReqsSubmitted);
    751                 AssertMsg(pCtxInt->cRequests > 0, ("Adding requests resulted in overflow\n"));
     751                AssertMsg(pCtxInt->cRequests >= 0, ("Adding requests resulted in overflow\n"));
    752752                break;
    753753            }
    754754
    755755            ASMAtomicAddS32(&pCtxInt->cRequests, cReqsSubmit);
    756             AssertMsg(pCtxInt->cRequests > 0, ("Adding requests resulted in overflow\n"));
     756            AssertMsg(pCtxInt->cRequests >= 0, ("Adding requests resulted in overflow\n"));
    757757            cReqs   -= cReqsSubmit;
    758758            pahReqs += cReqsSubmit;
     
    802802
    803803                ASMAtomicIncS32(&pCtxInt->cRequests);
    804                 AssertMsg(pCtxInt->cRequests > 0, ("Adding requests resulted in overflow\n"));
     804                AssertMsg(pCtxInt->cRequests >= 0, ("Adding requests resulted in overflow\n"));
    805805                cReqs--;
    806806                pahReqs++;
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