Changeset 40751 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Apr 3, 2012 7:43:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/alloc-win.cpp
r33269 r40751 29 29 * Header Files * 30 30 *******************************************************************************/ 31 /*#define USE_VIRTUAL_ALLOC*/ 31 32 #define LOG_GROUP RTLOGGROUP_MEM 32 33 #include <Windows.h> … … 54 55 if (pv) 55 56 { 56 /*57 * Add PROT_EXEC flag to the page.58 *59 * This is in violation of the SuS where I think it saith that mprotect() shall60 * only be used with mmap()'ed memory. Works on linux and OS/2 LIBC v0.6.61 */62 57 memset(pv, 0xcc, cb); 63 58 void *pvProt = (void *)((uintptr_t)pv & ~PAGE_OFFSET_MASK);
Note:
See TracChangeset
for help on using the changeset viewer.