summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/TCSystemAlloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/TCSystemAlloc.cpp')
-rw-r--r--JavaScriptCore/wtf/TCSystemAlloc.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/JavaScriptCore/wtf/TCSystemAlloc.cpp b/JavaScriptCore/wtf/TCSystemAlloc.cpp
index 73f9341..bd6eb33 100644
--- a/JavaScriptCore/wtf/TCSystemAlloc.cpp
+++ b/JavaScriptCore/wtf/TCSystemAlloc.cpp
@@ -224,7 +224,7 @@ static void* TryVirtualAlloc(size_t size, size_t *actual_size, size_t alignment)
}
void* result = VirtualAlloc(NULL, size + extra,
MEM_RESERVE | MEM_COMMIT | MEM_TOP_DOWN,
- PAGE_READWRITE);
+ PAGE_EXECUTE_READWRITE);
if (result == NULL) {
VirtualAlloc_failure = true;
@@ -428,3 +428,11 @@ void TCMalloc_SystemRelease(void* start, size_t length)
return;
#endif
}
+
+#if HAVE(VIRTUALALLOC)
+void TCMalloc_SystemCommit(void* start, size_t length)
+{
+ UNUSED_PARAM(start);
+ UNUSED_PARAM(length);
+}
+#endif