Changeset 39083 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Dec 7, 2008, 3:55:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r38866 r39083 240 240 } 241 241 242 #if HAVE(VIRTUALALLOC)243 void* fastMallocExecutable(size_t n)244 {245 return VirtualAlloc(0, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);246 }247 248 void fastFreeExecutable(void* p)249 {250 VirtualFree(p, 0, MEM_RELEASE);251 }252 #else253 void* fastMallocExecutable(size_t n)254 {255 return fastMalloc(n);256 }257 258 void fastFreeExecutable(void* p)259 {260 fastFree(p);261 }262 #endif263 264 242 } // namespace WTF 265 243 … … 3405 3383 return old_ptr; 3406 3384 } 3407 }3408 3409 void* fastMallocExecutable(size_t n)3410 {3411 return malloc<false>(n);3412 }3413 3414 void fastFreeExecutable(void* p)3415 {3416 free(p);3417 3385 } 3418 3386
Note:
See TracChangeset
for help on using the changeset viewer.