VirtualBox

儲存庫 vbox 的更動 18429


忽略:
時間撮記:
2009-3-28 上午01:58:11 (16 年 以前)
作者:
vboxsync
訊息:

MMHyper: Fixed bug (+warning) in mmR3HyperHeapCreate where the unaligned size was used instead of the aligned when calculating the number of pages in the heap. Just a theoretical issue since cb is always aligned. Main point is fixing the warning. :-)

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/MMHyper.cpp

    r18354 r18429  
    723723    const uint32_t  cbAligned = RT_ALIGN_32(cb, PAGE_SIZE);
    724724    AssertReturn(cbAligned >= cb, VERR_INVALID_PARAMETER);
    725     uint32_t const  cPages = cb >> PAGE_SHIFT;
     725    uint32_t const  cPages = cbAligned >> PAGE_SHIFT;
    726726    PSUPPAGE        paPages = (PSUPPAGE)MMR3HeapAlloc(pVM, MM_TAG_MM, cPages * sizeof(paPages[0]));
    727727    if (!paPages)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette