VirtualBox

Changeset 5351 in vbox for trunk/src


Ignore:
Timestamp:
Oct 17, 2007 12:24:00 PM (17 years ago)
Author:
vboxsync
Message:

page align the segkmem_alloc/free size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/alloc-r0drv-solaris.c

    r5325 r5351  
    3838#ifdef RT_ARCH_AMD64
    3939    if (fFlags & RTMEMHDR_FLAG_EXEC)
    40         pHdr = (PRTMEMHDR)segkmem_alloc(heaptext_arena, cb + sizeof(*pHdr), KM_SLEEP);
     40        pHdr = (PRTMEMHDR)segkmem_alloc(heaptext_arena, RT_ALIGN_Z(cb + sizeof(*pHdr), PAGE_SIZE), KM_SLEEP);
    4141    else
    4242#endif
     
    6666#ifdef RT_ARCH_AMD64
    6767    if (pHdr->fFlags & RTMEMHDR_FLAG_EXEC)
    68         segkmem_free(heaptext_arena, pHdr, pHdr->cb + sizeof(*pHdr));
     68        segkmem_free(heaptext_arena, pHdr, RT_ALIGN_Z(pHdr->cb + sizeof(*pHdr), PAGE_SIZE));
    6969    else
    7070#endif
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