- Timestamp:
- Oct 17, 2007 12:24:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/alloc-r0drv-solaris.c
r5325 r5351 38 38 #ifdef RT_ARCH_AMD64 39 39 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); 41 41 else 42 42 #endif … … 66 66 #ifdef RT_ARCH_AMD64 67 67 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)); 69 69 else 70 70 #endif
Note:
See TracChangeset
for help on using the changeset viewer.