The reservedZoneSize does not change due to the VM being run on a different thread. Hence, there is no need to save and restore its value. Instead of calling updateReservedZoneSize() to update the stack limit, we now call updateStackPointerAtVMEntry() to do the job. updateStackPointerAtVMEntry() will update the stackPointerAtVMEntry and delegate to updateStackLimit() to update the stack limit based on the new stackPointerAtVMEntry.
Created attachment 224043 [details] the patch.
Comment on attachment 224043 [details] the patch. View in context: https://bugs.webkit.org/attachment.cgi?id=224043&action=review r=me > Source/JavaScriptCore/runtime/VM.cpp:735 > +void VM::updateStackPointerAtVMEntry(void* sp) This should be named "setStackPointerAtVMEntry".
Thanks for the review. The patch has been updated and landed in r164018: <http://trac.webkit.org/r164018>.