-
mark.lam@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121972. Reviewed by Brent Fulgham. Source/JavaScriptCore: * interpreter/JSStack.cpp: (JSC::JSStack::~JSStack): - Reverting the change from r160004 since it's better to fix OSAllocatorWin to be consistent with OSAllocatorPosix. Source/WTF: * wtf/OSAllocatorWin.cpp: (WTF::OSAllocator::decommit): (WTF::OSAllocator::releaseDecommitted): - Added a check to ensure that the bytes to decommit / release is not 0. On Windows, a 0 length passed to VirtualFree() has a special meaning, and it's not "decommit / release nothing" as one would expect. Adding this check makes OSAllocatorWin consistent with OSAllocatorPosix for these 2 functions. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
029c2749