Changeset 104110 in vbox
- Timestamp:
- Mar 28, 2024 10:26:33 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompiler.cpp
r104109 r104110 509 509 STAM_PROFILE_START(&pExecMemAllocator->StatAlloc, a); 510 510 511 /*512 * Adjust the request size so it'll accomodate a header, the aligned it513 * up to a whole unit size.514 */515 /** @todo this aint right wrt header. See iemExecMemAllocatorAllocInChunk */516 cbReq = RT_ALIGN_32(cbReq, IEMEXECMEM_ALT_SUB_ALLOC_UNIT_SIZE);517 511 for (unsigned iIteration = 0;; iIteration++) 518 512 { … … 563 557 */ 564 558 if (iIteration == 0) 565 iemTbAllocatorFreeupNativeSpace(pVCpu, cbReq / sizeof(IEMNATIVEINSTR)); 559 { 560 /* No header included in the instruction count here. */ 561 uint32_t const cNeededInstrs = RT_ALIGN_32(cbReq, IEMEXECMEM_ALT_SUB_ALLOC_UNIT_SIZE) / sizeof(IEMNATIVEINSTR)); 562 iemTbAllocatorFreeupNativeSpace(pVCpu, cNeededInstrs); 563 } 566 564 else 567 565 {
Note:
See TracChangeset
for help on using the changeset viewer.