Comment parameters to PageAllocation::allocate()
authorUlf Hermann <ulf.hermann@digia.com>
Wed, 22 Oct 2014 10:34:47 +0000 (12:34 +0200)
committerUlf Hermann <ulf.hermann@digia.com>
Thu, 30 Oct 2014 12:19:51 +0000 (13:19 +0100)
Change-Id: I8966fbc5f89ce470a0a16fe29086fa6e13ef408e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4engine.cpp

index cab49ff..99050b0 100644 (file)
@@ -201,8 +201,9 @@ ExecutionEngine::ExecutionEngine(EvalISelFactory *factory)
     // reserve space for the JS stack
     // we allow it to grow to 2 times JSStackLimit, as we can overshoot due to garbage collection
     // and ScopedValues allocated outside of JIT'ed methods.
-    *jsStack = WTF::PageAllocation::allocate(2*JSStackLimit, WTF::OSAllocator::JSVMStackPages, true,
-                                             false, true);
+    *jsStack = WTF::PageAllocation::allocate(2 * JSStackLimit, WTF::OSAllocator::JSVMStackPages,
+                                             /* writable */ true, /* executable */ false,
+                                             /* includesGuardPages */ true);
     jsStackBase = (Value *)jsStack->base();
     jsStackTop = jsStackBase;