RESOLVED FIXED 82002
ExecutableAllocator::memoryPressureMultiplier() might can return NaN
https://bugs.webkit.org/show_bug.cgi?id=82002
Summary ExecutableAllocator::memoryPressureMultiplier() might can return NaN
Michael Saboff
Reported 2012-03-22 18:41:13 PDT
The caller of ExecutableAllocator::memoryPressureMultiplier() expects that it's value is >= 1.0. In some cases, memoryPressureMultiplier() can return NaN (due to a div by zero) or values less than 1.0.
Attachments
Patch (3.01 KB, patch)
2012-03-22 18:46 PDT, Michael Saboff
buildbot: commit-queue-
Fixed mac build failure (3.02 KB, patch)
2012-03-22 19:41 PDT, Michael Saboff
fpizlo: review+
Michael Saboff
Comment 1 2012-03-22 18:46:02 PDT
Build Bot
Comment 2 2012-03-22 19:21:35 PDT
Michael Saboff
Comment 3 2012-03-22 19:41:08 PDT
Created attachment 133418 [details] Fixed mac build failure
Filip Pizlo
Comment 4 2012-03-22 19:54:37 PDT
Comment on attachment 133418 [details] Fixed mac build failure View in context: https://bugs.webkit.org/attachment.cgi?id=133418&action=review R=me, but fix the style goof (if it's a real one and not some bugzilla fail). > Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:133 > + result = static_cast<double>(statistics.bytesReserved) / > + divisor; Is this meant to be on two lines?
Michael Saboff
Comment 5 2012-03-22 21:55:42 PDT
Note You need to log in before you can comment on or make changes to this bug.