VirtualBox

Changeset 86375 in vbox for trunk


Ignore:
Timestamp:
Oct 1, 2020 12:39:20 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140668
Message:

VMM/tstMMHyperHeap: Missing cleanup / leaks. bugref:9841

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/ssm.h

    r85121 r86375  
    11591159
    11601160
    1161 VMMR3_INT_DECL(void)    SSMR3Term(PVM pVM);
     1161VMMR3DECL(void)         SSMR3Term(PVM pVM);
    11621162VMMR3_INT_DECL(int)
    11631163SSMR3RegisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance, uint32_t uVersion,
  • trunk/src/VBox/VMM/VMMR3/SSM.cpp

    r82968 r86375  
    904904 *
    905905 * @param   pVM                 The cross context VM structure.
    906  */
    907 VMMR3_INT_DECL(void) SSMR3Term(PVM pVM)
     906 * @note    Not using VMMR3_INT_DECL because of testcases.
     907 */
     908VMMR3DECL(void) SSMR3Term(PVM pVM)
    908909{
    909910    if (pVM->ssm.s.fInitialized)
  • trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp

    r82968 r86375  
    2121*********************************************************************************************************************************/
    2222#include <VBox/vmm/mm.h>
     23#include <VBox/vmm/dbgf.h>
     24#include <VBox/vmm/ssm.h>
    2325#include <VBox/vmm/stam.h>
    2426#include <VBox/vmm/vm.h>
     
    267269    RTLogFlush(NULL);
    268270#endif
     271    SSMR3Term(pVM);
     272    STAMR3TermUVM(pUVM);
     273    DBGFR3TermUVM(pUVM);
     274    MMR3TermUVM(pUVM);
    269275    SUPR3PageFreeEx(pVM, RT_ELEMENTS(aPages));
    270276    RTMemPageFree(pUVM, RT_ALIGN_Z(sizeof(*pUVM), PAGE_SIZE));
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