VirtualBox

Changeset 104114 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Mar 29, 2024 1:57:23 AM (11 months ago)
Author:
vboxsync
Message:

VMM/IEM: Implemented a very simple alternative to iemTbAllocatorFreeupNativeSpace that frees up to 4MB of memory from a chunk in a linear fashion w/o considering TB recently use and such. Fixed a heap alloc overrun issue in iemExecMemAllocatorInit (dependant on the IEMEXECMEMALLOCATOR structure size). Fixed a use after free problem with threaded TBs and iemThreadedTbObsolete. bugref:10370

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IEMInternal.h

    r104103 r104114  
    60716071                              uint64_t cbInitialExec, uint64_t cbMaxExec, uint32_t cbChunkExec);
    60726072void                iemThreadedTbObsolete(PVMCPUCC pVCpu, PIEMTB pTb, bool fSafeToFree);
     6073DECLHIDDEN(void)    iemTbAllocatorFree(PVMCPUCC pVCpu, PIEMTB pTb);
    60736074void                iemTbAllocatorProcessDelayedFrees(PVMCPUCC pVCpu, PIEMTBALLOCATOR pTbAllocator);
    60746075void                iemTbAllocatorFreeupNativeSpace(PVMCPUCC pVCpu, uint32_t cNeededInstrs);
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