Changeset 48000 in webkit for trunk/JavaScriptCore/jit/ExecutableAllocatorPosix.cpp
- Timestamp:
- Sep 2, 2009, 5:18:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/ExecutableAllocatorPosix.cpp
r44341 r48000 45 45 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n) 46 46 { 47 ExecutablePool::Allocation alloc = { reinterpret_cast<char*>(mmap(NULL, n, INITIAL_PROTECTION_FLAGS, MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_EXECUTABLEALLOCATOR_MEMORY, 0)), n }; 47 void* allocation = mmap(NULL, n, INITIAL_PROTECTION_FLAGS, MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_EXECUTABLEALLOCATOR_MEMORY, 0); 48 if (allocation == MAP_FAILED) 49 CRASH(); 50 ExecutablePool::Allocation alloc = { reinterpret_cast<char*>(allocation), n }; 48 51 return alloc; 49 52 }
Note:
See TracChangeset
for help on using the changeset viewer.