author | Shu-yu Guo <shu@rfrn.org> |
Tue, 15 Oct 2013 18:41:54 -0700 | |
changeset 164672 | 349d02055f07ceaea5b2dfdf81be5b8b8a4de595 |
parent 164671 | d1881913d9a676f2a6ef45a6da3bf20c0f33c8f6 |
child 164673 | da7c23b2d1c7e3bd07eba75d2c088a9fa9369789 |
push id | 3066 |
push user | akeybl@mozilla.com |
push date | Mon, 09 Dec 2013 19:58:46 +0000 |
treeherder | mozilla-beta@a31a0dce83aa [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | terrence |
bugs | 913376 |
milestone | 27.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
js/src/jsgc.cpp | file | annotate | diff | comparison | revisions |
--- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -1117,18 +1117,18 @@ js_RemoveRoot(JSRuntime *rt, void *rp) typedef RootedValueMap::Range RootRange; typedef RootedValueMap::Entry RootEntry; typedef RootedValueMap::Enum RootEnum; static size_t ComputeTriggerBytes(Zone *zone, size_t lastBytes, size_t maxBytes, JSGCInvocationKind gckind) { size_t base = gckind == GC_SHRINK ? lastBytes : Max(lastBytes, zone->runtimeFromMainThread()->gcAllocationThreshold); - float trigger = float(base) * zone->gcHeapGrowthFactor; - return size_t(Min(float(maxBytes), trigger)); + double trigger = double(base) * zone->gcHeapGrowthFactor; + return size_t(Min(double(maxBytes), trigger)); } void Zone::setGCLastBytes(size_t lastBytes, JSGCInvocationKind gckind) { /* * The heap growth factor depends on the heap size after a GC and the GC frequency. * For low frequency GCs (more than 1sec between GCs) we let the heap grow to 150%.