Changeset 5325 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Oct 16, 2007 11:53:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/alloc-r0drv-solaris.c
r4543 r5325 36 36 Assert(cb != sizeof(void *)); 37 37 PRTMEMHDR pHdr; 38 #ifdef RT_ARCH_AMD64 39 if (fFlags & RTMEMHDR_FLAG_EXEC) 40 pHdr = (PRTMEMHDR)segkmem_alloc(heaptext_arena, cb + sizeof(*pHdr), KM_SLEEP); 41 else 42 #endif 38 43 if (fFlags & RTMEMHDR_FLAG_ZEROED) 39 44 pHdr = (PRTMEMHDR)kmem_zalloc(cb + sizeof(*pHdr), KM_SLEEP); … … 59 64 { 60 65 pHdr->u32Magic += 1; 61 kmem_free(pHdr, pHdr->cb + sizeof(*pHdr)); 66 #ifdef RT_ARCH_AMD64 67 if (pHdr->fFlags & RTMEMHDR_FLAG_EXEC) 68 segkmem_free(heaptext_arena, pHdr, pHdr->cb + sizeof(*pHdr)); 69 else 70 #endif 71 kmem_free(pHdr, pHdr->cb + sizeof(*pHdr)); 62 72 } 63 73
Note:
See TracChangeset
for help on using the changeset viewer.