VirtualBox

Changeset 17396 in vbox for trunk/src


Ignore:
Timestamp:
Mar 5, 2009 1:30:35 PM (16 years ago)
Author:
vboxsync
Message:

Added VMMGCLoggerFlushFullLog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/VMMGC.cpp

    r17305 r17396  
    181181
    182182/**
     183 * Flush logger if almost full.
     184 *
     185 * @param   pVM             The VM handle.
     186 */
     187VMMRCDECL(void) VMMGCLoggerFlushFullLog(PVM pVM)
     188{
     189    if (    pVM->vmm.s.pRCLoggerRC
     190        &&  pVM->vmm.s.pRCLoggerRC->offScratch >= sizeof(pVM->vmm.s.pRCLoggerRC->achScratch)*4/3)
     191    {
     192        VMMGCCallHost(pVM, VMMCALLHOST_VMM_LOGGER_FLUSH, 0);
     193    }
     194}
     195
     196/**
    183197 * Disables the GC logger temporarily
    184198 *
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