summaryrefslogtreecommitdiff
path: root/rts/win32/OSMem.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/win32/OSMem.c')
-rw-r--r--rts/win32/OSMem.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/rts/win32/OSMem.c b/rts/win32/OSMem.c
index c192fb5923..4c643a97c2 100644
--- a/rts/win32/OSMem.c
+++ b/rts/win32/OSMem.c
@@ -423,19 +423,6 @@ StgWord64 getPhysicalMemorySize (void)
return physMemSize;
}
-void setExecutable (void *p, W_ len, bool exec)
-{
- DWORD dwOldProtect = 0;
- if (VirtualProtect (p, len,
- exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE,
- &dwOldProtect) == 0)
- {
- sysErrorBelch("setExecutable: failed to protect 0x%p; old protection: "
- "%lu\n", p, (unsigned long)dwOldProtect);
- stg_exit(EXIT_FAILURE);
- }
-}
-
#if defined(USE_LARGE_ADDRESS_SPACE)
static void* heap_base = NULL;